This structure has a strict alignment requirement of 64 bytes! Do not allocate this with malloc(), it will not be sufficiently aligned. Use
XXHash#XXH3_createState and XXHash#XXH3_freeState, or stack allocation.
struct XXH3_state_t {
XXH64_hash_t acc[8];
unsigned char customSecret[XXH3_SECRET_DEFAULT_SIZE];
char[64 - (XXH3_SECRET_DEFAULT_SIZE & 63)];
unsigned char buffer[256];
XXH32_hash_t bufferedSize;
XXH32_hash_t useSeed;
size_t nbStripesSoFar;
XXH64_hash_t totalLen;
size_t nbStripesPerBlock;
size_t secretLimit;
XXH64_hash_t seed;
XXH64_hash_t reserved64;
unsigned char const * extSecret;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XXH3State.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ACC
The struct member offsets. |
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | BUFFER
The struct member offsets. |
| public static final int | BUFFEREDSIZE
The struct member offsets. |
| public static final int | CUSTOMSECRET
The struct member offsets. |
| public static final int | EXTSECRET
The struct member offsets. |
| public static final int | NBSTRIPESPERBLOCK
The struct member offsets. |
| public static final int | NBSTRIPESSOFAR
The struct member offsets. |
| public static final int | RESERVED64
The struct member offsets. |
| public static final int | SECRETLIMIT
The struct member offsets. |
| public static final int | SEED
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TOTALLEN
The struct member offsets. |
| public static final int | USESEED
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XXH3State(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public LongBuffer | |
| public long | |
| public ByteBuffer | |
| public byte | |
| public int | |
| public static XXH3State | |
| public static XXH3State. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XXH3State | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XXH3State. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static XXH3State | |
| public static XXH3State | |
| public static XXH3State. | |
| public static XXH3State. | |
| protected XXH3State | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static XXH3State | |
| public static XXH3State | |
| public static XXH3State. | create(int
the buffer capacity capacity)Returns a new |
| public static XXH3State. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XXH3State | |
| public static XXH3State. | |
| public ByteBuffer | |
| public byte | |
| public ByteBuffer | Returns: reference to an external secret for the_withSecret variants, NULL for other variantsthe number of elements in the returned buffer capacity)
|
| public static XXH3State | |
| public static XXH3State. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XXH3State | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XXH3State. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static XXH3State | |
| public static XXH3State | |
| public static XXH3State. | |
| public static XXH3State. | |
| public static LongBuffer | |
| public static long | |
| public long | |
| public long | |
| public static ByteBuffer | |
| public static byte | |
| public static int | |
| public static ByteBuffer | |
| public static byte | |
| public static ByteBuffer | |
| public static long | |
| public static long | |
| public static long | |
| public static long | |
| public static long | |
| public static long | |
| public static int | |
| public long | |
| public long | |
| public long | |
| public int | |
| public long | |
| public int |
| ACC | back to summary |
|---|---|
| public static final int ACC The struct member offsets. | |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| BUFFER | back to summary |
|---|---|
| public static final int BUFFER The struct member offsets. | |
| BUFFEREDSIZE | back to summary |
|---|---|
| public static final int BUFFEREDSIZE The struct member offsets. | |
| CUSTOMSECRET | back to summary |
|---|---|
| public static final int CUSTOMSECRET The struct member offsets. | |
| EXTSECRET | back to summary |
|---|---|
| public static final int EXTSECRET The struct member offsets. | |
| NBSTRIPESPERBLOCK | back to summary |
|---|---|
| public static final int NBSTRIPESPERBLOCK The struct member offsets. | |
| NBSTRIPESSOFAR | back to summary |
|---|---|
| public static final int NBSTRIPESSOFAR The struct member offsets. | |
| RESERVED64 | back to summary |
|---|---|
| public static final int RESERVED64 The struct member offsets. | |
| SECRETLIMIT | back to summary |
|---|---|
| public static final int SECRETLIMIT The struct member offsets. | |
| SEED | back to summary |
|---|---|
| public static final int SEED The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TOTALLEN | back to summary |
|---|---|
| public static final int TOTALLEN The struct member offsets. | |
| USESEED | back to summary |
|---|---|
| public static final int USESEED The struct member offsets. | |
| XXH3State | back to summary |
|---|---|
| protected XXH3State(long address, ByteBuffer container) | |
| XXH3State | back to summary |
|---|---|
| public XXH3State(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| acc | back to summary |
|---|---|
| public LongBuffer acc() the 8 accumulators. Similar to
| |
| acc | back to summary |
|---|---|
| public long acc(int index) the 8 accumulators. Similar to
| |
| buffer | back to summary |
|---|---|
| public ByteBuffer buffer() the internal buffer. See
| |
| buffer | back to summary |
|---|---|
| public byte buffer(int index) the internal buffer. See
| |
| bufferedSize | back to summary |
|---|---|
| public int bufferedSize() the amount of memory in
| |
| calloc | back to summary |
|---|---|
| public static XXH3State calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static XXH3State. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XXH3State calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XXH3State. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static XXH3State callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static XXH3State callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static XXH3State. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static XXH3State. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected XXH3State create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static XXH3State create() Returns a new | |
| create | back to summary |
|---|---|
| public static XXH3State create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static XXH3State. Returns a new
| |
| create | back to summary |
|---|---|
| public static XXH3State. Create a
| |
| createSafe | back to summary |
|---|---|
| public static XXH3State createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static XXH3State. Like
| |
| customSecret | back to summary |
|---|---|
| public ByteBuffer customSecret() used to store a custom secret generated from a seed
| |
| customSecret | back to summary |
|---|---|
| public byte customSecret(int index) used to store a custom secret generated from a seed
| |
| extSecret | back to summary |
|---|---|
public ByteBuffer extSecret(int capacity)
| |
| malloc | back to summary |
|---|---|
| public static XXH3State malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static XXH3State. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XXH3State malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XXH3State. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static XXH3State mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static XXH3State mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static XXH3State. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static XXH3State. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nacc | back to summary |
|---|---|
| public static LongBuffer nacc(long struct) Unsafe version of | |
| nacc | back to summary |
|---|---|
| public static long nacc(long struct, int index) Unsafe version of | |
| nbStripesPerBlock | back to summary |
|---|---|
| public long nbStripesPerBlock() number of stripes per block
| |
| nbStripesSoFar | back to summary |
|---|---|
| public long nbStripesSoFar() number or stripes processed
| |
| nbuffer | back to summary |
|---|---|
| public static ByteBuffer nbuffer(long struct) Unsafe version of | |
| nbuffer | back to summary |
|---|---|
| public static byte nbuffer(long struct, int index) Unsafe version of | |
| nbufferedSize | back to summary |
|---|---|
| public static int nbufferedSize(long struct) Unsafe version of | |
| ncustomSecret | back to summary |
|---|---|
| public static ByteBuffer ncustomSecret(long struct) Unsafe version of | |
| ncustomSecret | back to summary |
|---|---|
| public static byte ncustomSecret(long struct, int index) Unsafe version of | |
| nextSecret | back to summary |
|---|---|
| public static ByteBuffer nextSecret(long struct, int capacity) Unsafe version of | |
| nnbStripesPerBlock | back to summary |
|---|---|
| public static long nnbStripesPerBlock(long struct) Unsafe version of | |
| nnbStripesSoFar | back to summary |
|---|---|
| public static long nnbStripesSoFar(long struct) Unsafe version of | |
| nreserved64 | back to summary |
|---|---|
| public static long nreserved64(long struct) Unsafe version of | |
| nsecretLimit | back to summary |
|---|---|
| public static long nsecretLimit(long struct) Unsafe version of | |
| nseed | back to summary |
|---|---|
| public static long nseed(long struct) Unsafe version of | |
| ntotalLen | back to summary |
|---|---|
| public static long ntotalLen(long struct) Unsafe version of | |
| nuseSeed | back to summary |
|---|---|
| public static int nuseSeed(long struct) Unsafe version of | |
| reserved64 | back to summary |
|---|---|
| public long reserved64() reserved field
| |
| secretLimit | back to summary |
|---|---|
| public long secretLimit() size of
| |
| seed | back to summary |
|---|---|
| public long seed() seed for
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| totalLen | back to summary |
|---|---|
| public long totalLen() total length hashed. 64-bit even on 32-bit targets.
| |
| useSeed | back to summary |
|---|---|
| public int useSeed() reserved field. Needed for padding on 64-bit.
| |
XXH3State structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final XXH3State |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public LongBuffer | |
| public long | |
| public ByteBuffer | |
| public byte | |
| public int | |
| public ByteBuffer | |
| public byte | Returns: the value at the specified index of theXXH3State#customSecret field.
|
| public ByteBuffer | |
| protected XXH3State | |
| public long | |
| public long | |
| public long | |
| public long | |
| public long | |
| protected XXH3State. | |
| public long | |
| public int |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final XXH3State ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| acc | back to summary |
|---|---|
public LongBuffer acc()
| |
| acc | back to summary |
|---|---|
public long acc(int index)
| |
| buffer | back to summary |
|---|---|
public ByteBuffer buffer()
| |
| buffer | back to summary |
|---|---|
public byte buffer(int index)
| |
| bufferedSize | back to summary |
|---|---|
public int bufferedSize()
| |
| customSecret | back to summary |
|---|---|
public ByteBuffer customSecret()
| |
| customSecret | back to summary |
|---|---|
public byte customSecret(int index)
| |
| extSecret | back to summary |
|---|---|
public ByteBuffer extSecret(int capacity)
| |
| getElementFactory | back to summary |
|---|---|
| protected XXH3State getElementFactory() Implements abstract org.
| |
| nbStripesPerBlock | back to summary |
|---|---|
public long nbStripesPerBlock()
| |
| nbStripesSoFar | back to summary |
|---|---|
public long nbStripesSoFar()
| |
| reserved64 | back to summary |
|---|---|
public long reserved64()
| |
| secretLimit | back to summary |
|---|---|
public long secretLimit()
| |
| seed | back to summary |
|---|---|
public long seed()
| |
| self | back to summary |
|---|---|
| protected XXH3State. Implements abstract org.
| |
| totalLen | back to summary |
|---|---|
public long totalLen()
| |
| useSeed | back to summary |
|---|---|
public int useSeed()
| |