public class XXH3State
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct XXH3_state_t {
XXH32_hash_t acc[8];
unsigned char customSecret[192];
unsigned char buffer[256];
XXH32_hash_t bufferedSize;
XXH32_hash_t nbStripesPerBlock;
XXH32_hash_t nbStripesSoFar;
XXH32_hash_t secretLimit;
XXH32_hash_t reserved32;
XXH32_hash_t reserved32_2;
XXH32_hash_t totalLen;
XXH32_hash_t seed;
XXH32_hash_t reserved64;
unsigned char const * secret;
}| Modifier and Type | Class and Description |
|---|---|
static class |
XXH3State.Buffer
An array of
XXH3State structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACC
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BUFFER
The struct member offsets.
|
static int |
BUFFEREDSIZE
The struct member offsets.
|
static int |
CUSTOMSECRET
The struct member offsets.
|
static int |
NBSTRIPESPERBLOCK
The struct member offsets.
|
static int |
NBSTRIPESSOFAR
The struct member offsets.
|
static int |
RESERVED32
The struct member offsets.
|
static int |
RESERVED32_2
The struct member offsets.
|
static int |
RESERVED64
The struct member offsets.
|
static int |
SECRET
The struct member offsets.
|
static int |
SECRETLIMIT
The struct member offsets.
|
static int |
SEED
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TOTALLEN
The struct member offsets.
|
| Constructor and Description |
|---|
XXH3State(java.nio.ByteBuffer container)
Creates a
XXH3State instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
java.nio.LongBuffer |
acc()
Returns a
LongBuffer view of the acc field. |
long |
acc(int index)
Returns the value at the specified index of the
acc field. |
java.nio.ByteBuffer |
buffer()
Returns a
ByteBuffer view of the buffer field. |
byte |
buffer(int index)
Returns the value at the specified index of the
buffer field. |
int |
bufferedSize()
Returns the value of the
bufferedSize field. |
static XXH3State |
calloc()
Returns a new
XXH3State instance allocated with memCalloc. |
static XXH3State.Buffer |
calloc(int capacity)
Returns a new
XXH3State.Buffer instance allocated with memCalloc. |
static XXH3State |
callocStack()
Returns a new
XXH3State instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XXH3State.Buffer |
callocStack(int capacity)
Returns a new
XXH3State.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XXH3State.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XXH3State.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XXH3State |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XXH3State instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XXH3State |
create()
Returns a new
XXH3State instance allocated with BufferUtils. |
static XXH3State.Buffer |
create(int capacity)
Returns a new
XXH3State.Buffer instance allocated with BufferUtils. |
static XXH3State |
create(long address)
Returns a new
XXH3State instance for the specified memory address. |
static XXH3State.Buffer |
create(long address,
int capacity)
Create a
XXH3State.Buffer instance at the specified memory. |
static XXH3State |
createSafe(long address)
|
static XXH3State.Buffer |
createSafe(long address,
int capacity)
|
java.nio.ByteBuffer |
customSecret()
Returns a
ByteBuffer view of the customSecret field. |
byte |
customSecret(int index)
Returns the value at the specified index of the
customSecret field. |
static XXH3State |
malloc()
Returns a new
XXH3State instance allocated with memAlloc. |
static XXH3State.Buffer |
malloc(int capacity)
Returns a new
XXH3State.Buffer instance allocated with memAlloc. |
static XXH3State |
mallocStack()
Returns a new
XXH3State instance allocated on the thread-local MemoryStack. |
static XXH3State.Buffer |
mallocStack(int capacity)
Returns a new
XXH3State.Buffer instance allocated on the thread-local MemoryStack. |
static XXH3State.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XXH3State.Buffer instance allocated on the specified MemoryStack. |
static XXH3State |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XXH3State instance allocated on the specified MemoryStack. |
static java.nio.LongBuffer |
nacc(long struct)
Unsafe version of
acc(). |
static long |
nacc(long struct,
int index)
Unsafe version of
acc. |
int |
nbStripesPerBlock()
Returns the value of the
nbStripesPerBlock field. |
int |
nbStripesSoFar()
Returns the value of the
nbStripesSoFar field. |
static java.nio.ByteBuffer |
nbuffer(long struct)
Unsafe version of
buffer(). |
static byte |
nbuffer(long struct,
int index)
Unsafe version of
buffer. |
static int |
nbufferedSize(long struct)
Unsafe version of
bufferedSize(). |
static java.nio.ByteBuffer |
ncustomSecret(long struct)
Unsafe version of
customSecret(). |
static byte |
ncustomSecret(long struct,
int index)
Unsafe version of
customSecret. |
static int |
nnbStripesPerBlock(long struct)
Unsafe version of
nbStripesPerBlock(). |
static int |
nnbStripesSoFar(long struct)
Unsafe version of
nbStripesSoFar(). |
static int |
nreserved32_2(long struct)
Unsafe version of
reserved32_2(). |
static int |
nreserved32(long struct)
Unsafe version of
reserved32(). |
static long |
nreserved64(long struct)
Unsafe version of
reserved64(). |
static java.nio.ByteBuffer |
nsecret(long struct,
int capacity)
Unsafe version of
secret. |
static int |
nsecretLimit(long struct)
Unsafe version of
secretLimit(). |
static long |
nseed(long struct)
Unsafe version of
seed(). |
static long |
ntotalLen(long struct)
Unsafe version of
totalLen(). |
int |
reserved32_2()
Returns the value of the
reserved32_2 field. |
int |
reserved32()
Returns the value of the
reserved32 field. |
long |
reserved64()
Returns the value of the
reserved64 field. |
java.nio.ByteBuffer |
secret(int capacity)
Returns a
ByteBuffer view of the data pointed to by the secret field. |
int |
secretLimit()
Returns the value of the
secretLimit field. |
long |
seed()
Returns the value of the
seed field. |
int |
sizeof() |
long |
totalLen()
Returns the value of the
totalLen field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int ACC
public static final int CUSTOMSECRET
public static final int BUFFER
public static final int BUFFEREDSIZE
public static final int NBSTRIPESPERBLOCK
public static final int NBSTRIPESSOFAR
public static final int SECRETLIMIT
public static final int RESERVED32
public static final int RESERVED32_2
public static final int TOTALLEN
public static final int SEED
public static final int RESERVED64
public static final int SECRET
public XXH3State(java.nio.ByteBuffer container)
XXH3State instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic java.nio.LongBuffer acc()
LongBuffer view of the acc field.public long acc(int index)
acc field.public java.nio.ByteBuffer customSecret()
ByteBuffer view of the customSecret field.public byte customSecret(int index)
customSecret field.public java.nio.ByteBuffer buffer()
ByteBuffer view of the buffer field.public byte buffer(int index)
buffer field.public int bufferedSize()
bufferedSize field.public int nbStripesPerBlock()
nbStripesPerBlock field.public int nbStripesSoFar()
nbStripesSoFar field.public int secretLimit()
secretLimit field.public int reserved32()
reserved32 field.public int reserved32_2()
reserved32_2 field.public long totalLen()
totalLen field.public long seed()
seed field.public long reserved64()
reserved64 field.public java.nio.ByteBuffer secret(int capacity)
ByteBuffer view of the data pointed to by the secret field.capacity - the number of elements in the returned bufferpublic static XXH3State malloc()
XXH3State instance allocated with memAlloc. The instance must be explicitly freed.public static XXH3State calloc()
XXH3State instance allocated with memCalloc. The instance must be explicitly freed.public static XXH3State create()
XXH3State instance allocated with BufferUtils.public static XXH3State create(long address)
XXH3State instance for the specified memory address.@Nullable public static XXH3State createSafe(long address)
public static XXH3State.Buffer malloc(int capacity)
XXH3State.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XXH3State.Buffer calloc(int capacity)
XXH3State.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XXH3State.Buffer create(int capacity)
XXH3State.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static XXH3State.Buffer create(long address, int capacity)
XXH3State.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static XXH3State.Buffer createSafe(long address, int capacity)
public static XXH3State mallocStack()
XXH3State instance allocated on the thread-local MemoryStack.public static XXH3State callocStack()
XXH3State instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static XXH3State mallocStack(org.lwjgl.system.MemoryStack stack)
XXH3State instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static XXH3State callocStack(org.lwjgl.system.MemoryStack stack)
XXH3State instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static XXH3State.Buffer mallocStack(int capacity)
XXH3State.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static XXH3State.Buffer callocStack(int capacity)
XXH3State.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static XXH3State.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XXH3State.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static XXH3State.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XXH3State.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static java.nio.LongBuffer nacc(long struct)
acc().public static long nacc(long struct,
int index)
acc.public static java.nio.ByteBuffer ncustomSecret(long struct)
customSecret().public static byte ncustomSecret(long struct,
int index)
customSecret.public static java.nio.ByteBuffer nbuffer(long struct)
buffer().public static byte nbuffer(long struct,
int index)
buffer.public static int nbufferedSize(long struct)
bufferedSize().public static int nnbStripesPerBlock(long struct)
nbStripesPerBlock().public static int nnbStripesSoFar(long struct)
nbStripesSoFar().public static int nsecretLimit(long struct)
secretLimit().public static int nreserved32(long struct)
reserved32().public static int nreserved32_2(long struct)
reserved32_2().public static long ntotalLen(long struct)
totalLen().public static long nseed(long struct)
seed().public static long nreserved64(long struct)
reserved64().public static java.nio.ByteBuffer nsecret(long struct,
int capacity)
secret.Copyright LWJGL. All Rights Reserved. License terms.