Package org.lwjgl.util.xxhash
Class XXH128Hash
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct XXH128_hash_t {
XXH64_hash_t low64;
XXH64_hash_t high64;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXXH128Hash(ByteBuffer container) Creates aXXH128Hashinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XXH128Hashcalloc()Returns a newXXH128Hashinstance allocated withmemCalloc.static XXH128Hash.Buffercalloc(int capacity) Returns a newXXH128Hash.Bufferinstance allocated withmemCalloc.static XXH128Hash.Buffercalloc(int capacity, MemoryStack stack) Returns a newXXH128Hash.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XXH128Hashcalloc(MemoryStack stack) Returns a newXXH128Hashinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XXH128Hashcreate()Returns a newXXH128Hashinstance allocated withBufferUtils.static XXH128Hash.Buffercreate(int capacity) Returns a newXXH128Hash.Bufferinstance allocated withBufferUtils.static XXH128Hashcreate(long address) Returns a newXXH128Hashinstance for the specified memory address.static XXH128Hash.Buffercreate(long address, int capacity) Create aXXH128Hash.Bufferinstance at the specified memory.static @Nullable XXH128HashcreateSafe(long address) static @Nullable XXH128Hash.BuffercreateSafe(long address, int capacity) longhigh64()longlow64()static XXH128Hashmalloc()Returns a newXXH128Hashinstance allocated withmemAlloc.static XXH128Hash.Buffermalloc(int capacity) Returns a newXXH128Hash.Bufferinstance allocated withmemAlloc.static XXH128Hash.Buffermalloc(int capacity, MemoryStack stack) Returns a newXXH128Hash.Bufferinstance allocated on the specifiedMemoryStack.static XXH128Hashmalloc(MemoryStack stack) Returns a newXXH128Hashinstance allocated on the specifiedMemoryStack.static longnhigh64(long struct) Unsafe version ofhigh64().static longnlow64(long struct) Unsafe version oflow64().intsizeof()Returnssizeof(struct).Methods 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. -
LOW64
public static final int LOW64The struct member offsets. -
HIGH64
public static final int HIGH64The struct member offsets.
-
-
Constructor Details
-
XXH128Hash
Creates aXXH128Hashinstance 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XXH128Hash>
-
low64
public long low64()- Returns:
- the value of the
low64field.
-
high64
public long high64()- Returns:
- the value of the
high64field.
-
malloc
Returns a newXXH128Hashinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXXH128Hashinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXXH128Hashinstance allocated withBufferUtils. -
create
Returns a newXXH128Hashinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXXH128Hash.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXXH128Hash.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXXH128Hash.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXXH128Hash.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXXH128Hashinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXXH128Hashinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXXH128Hash.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXXH128Hash.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nlow64
public static long nlow64(long struct) Unsafe version oflow64(). -
nhigh64
public static long nhigh64(long struct) Unsafe version ofhigh64().
-