Package org.lwjgl.util.xxhash
Class XXH64State
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct
org.lwjgl.util.xxhash.XXH64State
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XXH64State
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The opaque state struct for the XXH64 streaming API.
Layout
struct XXH64_state_t {
XXH64_hash_t total_len();
XXH64_hash_t v()[4];
XXH64_hash_t mem64()[4];
XXH32_hash_t memsize();
XXH32_hash_t reserved32();
XXH64_hash_t reserved64();
}-
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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.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
ConstructorsConstructorDescriptionXXH64State(ByteBuffer container) Creates aXXH64Stateinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XXH64Statecalloc()Returns a newXXH64Stateinstance allocated withmemCalloc.static XXH64State.Buffercalloc(int capacity) Returns a newXXH64State.Bufferinstance allocated withmemCalloc.static XXH64State.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXXH64State.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XXH64Statecalloc(org.lwjgl.system.MemoryStack stack) Returns a newXXH64Stateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XXH64StateDeprecated.static XXH64State.BuffercallocStack(int capacity) Deprecated.static XXH64State.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static XXH64StatecallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static XXH64Statecreate()Returns a newXXH64Stateinstance allocated withBufferUtils.static XXH64State.Buffercreate(int capacity) Returns a newXXH64State.Bufferinstance allocated withBufferUtils.static XXH64Statecreate(long address) Returns a newXXH64Stateinstance for the specified memory address.static XXH64State.Buffercreate(long address, int capacity) Create aXXH64State.Bufferinstance at the specified memory.static XXH64StatecreateSafe(long address) static XXH64State.BuffercreateSafe(long address, int capacity) static XXH64Statemalloc()Returns a newXXH64Stateinstance allocated withmemAlloc.static XXH64State.Buffermalloc(int capacity) Returns a newXXH64State.Bufferinstance allocated withmemAlloc.static XXH64State.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXXH64State.Bufferinstance allocated on the specifiedMemoryStack.static XXH64Statemalloc(org.lwjgl.system.MemoryStack stack) Returns a newXXH64Stateinstance allocated on the specifiedMemoryStack.static XXH64StateDeprecated.static XXH64State.BuffermallocStack(int capacity) Deprecated.static XXH64State.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static XXH64StatemallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.mem64()internal buffer for partial reads.longmem64(int index) internal buffer for partial reads.intmemsize()amount of data inmem64static LongBuffernmem64(long struct) Unsafe version ofmem64().static longnmem64(long struct, int index) Unsafe version ofmem64.static intnmemsize(long struct) Unsafe version ofmemsize().static intnreserved32(long struct) Unsafe version ofreserved32().static longnreserved64(long struct) Unsafe version ofreserved64().static longntotal_len(long struct) Unsafe version oftotal_len().static LongBuffernv(long struct) Unsafe version ofv().static longnv(long struct, int index) Unsafe version ofv.intreserved field, needed for padding anywayslongreserved field.intsizeof()longtotal length hashed.v()accumulator laneslongv(int index) accumulator lanesMethods 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. -
TOTAL_LEN
public static final int TOTAL_LENThe struct member offsets. -
V
public static final int VThe struct member offsets. -
MEM64
public static final int MEM64The struct member offsets. -
MEMSIZE
public static final int MEMSIZEThe struct member offsets. -
RESERVED32
public static final int RESERVED32The struct member offsets. -
RESERVED64
public static final int RESERVED64The struct member offsets.
-
-
Constructor Details
-
XXH64State
Creates aXXH64Stateinstance 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
-
total_len
public long total_len()total length hashed. This is always 64-bit. -
v
accumulator lanes -
v
public long v(int index) accumulator lanes -
mem64
internal buffer for partial reads. Treated asunsigned char[32]. -
mem64
public long mem64(int index) internal buffer for partial reads. Treated asunsigned char[32]. -
memsize
public int memsize()amount of data inmem64 -
reserved32
public int reserved32()reserved field, needed for padding anyways -
reserved64
public long reserved64()reserved field. Do not read or write to it. -
malloc
Returns a newXXH64Stateinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXXH64Stateinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXXH64Stateinstance allocated withBufferUtils. -
create
Returns a newXXH64Stateinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXXH64State.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXXH64State.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXXH64State.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXXH64State.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 XXH64State.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 XXH64State.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newXXH64Stateinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXXH64Stateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXXH64State.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXXH64State.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntotal_len
public static long ntotal_len(long struct) Unsafe version oftotal_len(). -
nv
Unsafe version ofv(). -
nv
public static long nv(long struct, int index) Unsafe version ofv. -
nmem64
Unsafe version ofmem64(). -
nmem64
public static long nmem64(long struct, int index) Unsafe version ofmem64. -
nmemsize
public static int nmemsize(long struct) Unsafe version ofmemsize(). -
nreserved32
public static int nreserved32(long struct) Unsafe version ofreserved32(). -
nreserved64
public static long nreserved64(long struct) Unsafe version ofreserved64().
-