Package org.lwjgl.util.xxhash
Class XXH64State
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct XXH64_state_t {
XXH64_hash_t total_len;
XXH64_hash_t acc[4];
unsigned char buffer[32];
XXH32_hash_t bufferedSize;
XXH32_hash_t reserved32;
XXH64_hash_t reserved64;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct member offsets.static final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The 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 aXXH64State
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionacc()
long
acc
(int index) buffer()
byte
buffer
(int index) int
static XXH64State
calloc()
Returns a newXXH64State
instance allocated withmemCalloc
.static XXH64State.Buffer
calloc
(int capacity) Returns a newXXH64State.Buffer
instance allocated withmemCalloc
.static XXH64State.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newXXH64State.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XXH64State
calloc
(MemoryStack stack) Returns a newXXH64State
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XXH64State
Deprecated.static XXH64State.Buffer
callocStack
(int capacity) Deprecated.static XXH64State.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static XXH64State
callocStack
(MemoryStack stack) Deprecated.static XXH64State
create()
Returns a newXXH64State
instance allocated withBufferUtils
.static XXH64State.Buffer
create
(int capacity) Returns a newXXH64State.Buffer
instance allocated withBufferUtils
.static XXH64State
create
(long address) Returns a newXXH64State
instance for the specified memory address.static XXH64State.Buffer
create
(long address, int capacity) Create aXXH64State.Buffer
instance at the specified memory.static @Nullable XXH64State
createSafe
(long address) static @Nullable XXH64State.Buffer
createSafe
(long address, int capacity) static XXH64State
malloc()
Returns a newXXH64State
instance allocated withmemAlloc
.static XXH64State.Buffer
malloc
(int capacity) Returns a newXXH64State.Buffer
instance allocated withmemAlloc
.static XXH64State.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newXXH64State.Buffer
instance allocated on the specifiedMemoryStack
.static XXH64State
malloc
(MemoryStack stack) Returns a newXXH64State
instance allocated on the specifiedMemoryStack
.static XXH64State
Deprecated.static XXH64State.Buffer
mallocStack
(int capacity) Deprecated.static XXH64State.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static XXH64State
mallocStack
(MemoryStack stack) Deprecated.static LongBuffer
nacc
(long struct) Unsafe version ofacc()
.static long
nacc
(long struct, int index) Unsafe version ofacc
.static ByteBuffer
nbuffer
(long struct) Unsafe version ofbuffer()
.static byte
nbuffer
(long struct, int index) Unsafe version ofbuffer
.static int
nbufferedSize
(long struct) Unsafe version ofbufferedSize()
.static int
nreserved32
(long struct) Unsafe version ofreserved32()
.static long
nreserved64
(long struct) Unsafe version ofreserved64()
.static long
ntotal_len
(long struct) Unsafe version oftotal_len()
.int
long
int
sizeof()
Returnssizeof(struct)
.long
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
ACC
public static final int ACCThe struct member offsets. -
BUFFER
public static final int BUFFERThe struct member offsets. -
BUFFEREDSIZE
public static final int BUFFEREDSIZEThe 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 aXXH64State
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<XXH64State>
-
total_len
public long total_len()- Returns:
- the value of the
total_len
field.
-
acc
- Returns:
- a
LongBuffer
view of theacc
field.
-
acc
public long acc(int index) - Returns:
- the value at the specified index of the
acc
field.
-
buffer
- Returns:
- a
ByteBuffer
view of thebuffer
field.
-
buffer
public byte buffer(int index) - Returns:
- the value at the specified index of the
buffer
field.
-
bufferedSize
public int bufferedSize()- Returns:
- the value of the
bufferedSize
field.
-
reserved32
public int reserved32()- Returns:
- the value of the
reserved32
field.
-
reserved64
public long reserved64()- Returns:
- the value of the
reserved64
field.
-
malloc
Returns a newXXH64State
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXXH64State
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXXH64State
instance allocated withBufferUtils
. -
create
Returns a newXXH64State
instance for the specified memory address. -
createSafe
-
malloc
Returns a newXXH64State.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXXH64State.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXXH64State.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXXH64State.Buffer
instance 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.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newXXH64State
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXXH64State
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXXH64State.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXXH64State.Buffer
instance allocated on the specifiedMemoryStack
and 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()
. -
nacc
Unsafe version ofacc()
. -
nacc
public static long nacc(long struct, int index) Unsafe version ofacc
. -
nbuffer
Unsafe version ofbuffer()
. -
nbuffer
public static byte nbuffer(long struct, int index) Unsafe version ofbuffer
. -
nbufferedSize
public static int nbufferedSize(long struct) Unsafe version ofbufferedSize()
. -
nreserved32
public static int nreserved32(long struct) Unsafe version ofreserved32()
. -
nreserved64
public static long nreserved64(long struct) Unsafe version ofreserved64()
.
-