Package org.lwjgl.util.meow
Class MeowHash
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<MeowHash>
org.lwjgl.util.meow.MeowHash
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class MeowHash
extends org.lwjgl.system.Struct<MeowHash>
implements org.lwjgl.system.NativeResource
Layout
union meow_hash {
meow_u128 u128;
meow_u64 u64[2];
meow_u32 u32[4];
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionMeowHash(ByteBuffer container) Creates aMeowHashinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic MeowHashcalloc()Returns a newMeowHashinstance allocated withmemCalloc.static MeowHash.Buffercalloc(int capacity) Returns a newMeowHash.Bufferinstance allocated withmemCalloc.static MeowHash.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newMeowHash.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MeowHashcalloc(org.lwjgl.system.MemoryStack stack) Returns a newMeowHashinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MeowHashDeprecated.static MeowHash.BuffercallocStack(int capacity) Deprecated.static MeowHash.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static MeowHashcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static MeowHashcreate()Returns a newMeowHashinstance allocated withBufferUtils.static MeowHash.Buffercreate(int capacity) Returns a newMeowHash.Bufferinstance allocated withBufferUtils.static MeowHashcreate(long address) Returns a newMeowHashinstance for the specified memory address.static MeowHash.Buffercreate(long address, int capacity) Create aMeowHash.Bufferinstance at the specified memory.static MeowHashcreateSafe(long address) static MeowHash.BuffercreateSafe(long address, int capacity) static MeowHashmalloc()Returns a newMeowHashinstance allocated withmemAlloc.static MeowHash.Buffermalloc(int capacity) Returns a newMeowHash.Bufferinstance allocated withmemAlloc.static MeowHash.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newMeowHash.Bufferinstance allocated on the specifiedMemoryStack.static MeowHashmalloc(org.lwjgl.system.MemoryStack stack) Returns a newMeowHashinstance allocated on the specifiedMemoryStack.static MeowHashDeprecated.static MeowHash.BuffermallocStack(int capacity) Deprecated.static MeowHash.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static MeowHashmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static MeowU128nu128(long struct) Unsafe version ofu128().static IntBuffernu32(long struct) Unsafe version ofu32().static intnu32(long struct, int index) Unsafe version ofu32.static LongBuffernu64(long struct) Unsafe version ofu64().static longnu64(long struct, int index) Unsafe version ofu64.intsizeof()u128()u32()intu32(int index) u64()longu64(int index) Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
U128
public static final int U128The struct member offsets. -
U64
public static final int U64The struct member offsets. -
U32
public static final int U32The struct member offsets.
-
-
Constructor Details
-
MeowHash
Creates aMeowHashinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<MeowHash>
-
u128
- Returns:
- a
MeowU128view of theu128field.
-
u64
- Returns:
- a
LongBufferview of theu64field.
-
u64
public long u64(int index) - Returns:
- the value at the specified index of the
u64field.
-
u32
- Returns:
- a
IntBufferview of theu32field.
-
u32
public int u32(int index) - Returns:
- the value at the specified index of the
u32field.
-
malloc
Returns a newMeowHashinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newMeowHashinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newMeowHashinstance allocated withBufferUtils. -
create
Returns a newMeowHashinstance for the specified memory address. -
createSafe
-
malloc
Returns a newMeowHash.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newMeowHash.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newMeowHash.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aMeowHash.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static MeowHash.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static MeowHash.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newMeowHashinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newMeowHashinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newMeowHash.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newMeowHash.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nu128
Unsafe version ofu128(). -
nu64
Unsafe version ofu64(). -
nu64
public static long nu64(long struct, int index) Unsafe version ofu64. -
nu32
Unsafe version ofu32(). -
nu32
public static int nu32(long struct, int index) Unsafe version ofu32.
-