Package org.lwjgl.util.meow
Class MeowHash
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.meow.MeowHash
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class MeowHash extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
union meow_hash {meow_u128u128; meow_u64 u64[2]; meow_u32 u32[4]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMeowHash.BufferAn array ofMeowHashstructs.
-
Constructor Summary
Constructors Constructor Description MeowHash(java.nio.ByteBuffer container)Creates aMeowHashinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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 MeowHashcallocStack()Deprecated.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 MeowHashmallocStack()Deprecated.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 java.nio.IntBuffernu32(long struct)Unsafe version ofu32().static intnu32(long struct, int index)Unsafe version ofu32.static java.nio.LongBuffernu64(long struct)Unsafe version ofu64().static longnu64(long struct, int index)Unsafe version ofu64.intsizeof()MeowU128u128()java.nio.IntBufferu32()intu32(int index)java.nio.LongBufferu64()longu64(int index)
-
-
-
Constructor Detail
-
MeowHash
public MeowHash(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
u64
public java.nio.LongBuffer u64()
- Returns:
- a
LongBufferview of theu64field.
-
u64
public long u64(int index)
- Returns:
- the value at the specified index of the
u64field.
-
u32
public java.nio.IntBuffer u32()
- Returns:
- a
IntBufferview of theu32field.
-
u32
public int u32(int index)
- Returns:
- the value at the specified index of the
u32field.
-
malloc
public static MeowHash malloc()
Returns a newMeowHashinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static MeowHash calloc()
Returns a newMeowHashinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static MeowHash create()
Returns a newMeowHashinstance allocated withBufferUtils.
-
create
public static MeowHash create(long address)
Returns a newMeowHashinstance for the specified memory address.
-
createSafe
@Nullable public static MeowHash createSafe(long address)
-
malloc
public static MeowHash.Buffer malloc(int capacity)
Returns a newMeowHash.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static MeowHash.Buffer calloc(int capacity)
Returns a newMeowHash.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static MeowHash.Buffer create(int capacity)
Returns a newMeowHash.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static MeowHash.Buffer create(long address, int capacity)
Create aMeowHash.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static MeowHash.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static MeowHash mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static MeowHash callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static MeowHash mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static MeowHash callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static MeowHash.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static MeowHash.Buffer callocStack(int capacity)
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
public static MeowHash malloc(org.lwjgl.system.MemoryStack stack)
Returns a newMeowHashinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static MeowHash calloc(org.lwjgl.system.MemoryStack stack)
Returns a newMeowHashinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static MeowHash.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newMeowHash.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static MeowHash.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newMeowHash.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nu64
public static java.nio.LongBuffer nu64(long struct)
Unsafe version ofu64().
-
nu64
public static long nu64(long struct, int index)Unsafe version ofu64.
-
nu32
public static java.nio.IntBuffer nu32(long struct)
Unsafe version ofu32().
-
nu32
public static int nu32(long struct, int index)Unsafe version ofu32.
-
-