public class XXH64Canonical
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
digest[8] – the digest in canonical representation
struct XXH64_canonical_t {
unsigned char digest[8];
}| Modifier and Type | Class and Description |
|---|---|
static class |
XXH64Canonical.Buffer
An array of
XXH64Canonical structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DIGEST
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
XXH64Canonical(java.nio.ByteBuffer container)
Creates a
XXH64Canonical instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static XXH64Canonical |
calloc()
Returns a new
XXH64Canonical instance allocated with memCalloc. |
static XXH64Canonical.Buffer |
calloc(int capacity)
Returns a new
XXH64Canonical.Buffer instance allocated with memCalloc. |
static XXH64Canonical |
callocStack()
Returns a new
XXH64Canonical instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XXH64Canonical.Buffer |
callocStack(int capacity)
Returns a new
XXH64Canonical.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static XXH64Canonical.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XXH64Canonical.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XXH64Canonical |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XXH64Canonical instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static XXH64Canonical |
create()
Returns a new
XXH64Canonical instance allocated with BufferUtils. |
static XXH64Canonical.Buffer |
create(int capacity)
Returns a new
XXH64Canonical.Buffer instance allocated with BufferUtils. |
static XXH64Canonical |
create(long address)
Returns a new
XXH64Canonical instance for the specified memory address. |
static XXH64Canonical.Buffer |
create(long address,
int capacity)
Create a
XXH64Canonical.Buffer instance at the specified memory. |
static XXH64Canonical |
createSafe(long address)
|
static XXH64Canonical.Buffer |
createSafe(long address,
int capacity)
|
java.nio.ByteBuffer |
digest()
Returns a
ByteBuffer view of the digest field. |
byte |
digest(int index)
Returns the value at the specified index of the
digest field. |
static XXH64Canonical |
malloc()
Returns a new
XXH64Canonical instance allocated with memAlloc. |
static XXH64Canonical.Buffer |
malloc(int capacity)
Returns a new
XXH64Canonical.Buffer instance allocated with memAlloc. |
static XXH64Canonical |
mallocStack()
Returns a new
XXH64Canonical instance allocated on the thread-local MemoryStack. |
static XXH64Canonical.Buffer |
mallocStack(int capacity)
Returns a new
XXH64Canonical.Buffer instance allocated on the thread-local MemoryStack. |
static XXH64Canonical.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
XXH64Canonical.Buffer instance allocated on the specified MemoryStack. |
static XXH64Canonical |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
XXH64Canonical instance allocated on the specified MemoryStack. |
static java.nio.ByteBuffer |
ndigest(long struct)
Unsafe version of
digest(). |
static byte |
ndigest(long struct,
int index)
Unsafe version of
digest. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int DIGEST
public XXH64Canonical(java.nio.ByteBuffer container)
XXH64Canonical 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.ByteBuffer digest()
ByteBuffer view of the digest field.public byte digest(int index)
digest field.public static XXH64Canonical malloc()
XXH64Canonical instance allocated with memAlloc. The instance must be explicitly freed.public static XXH64Canonical calloc()
XXH64Canonical instance allocated with memCalloc. The instance must be explicitly freed.public static XXH64Canonical create()
XXH64Canonical instance allocated with BufferUtils.public static XXH64Canonical create(long address)
XXH64Canonical instance for the specified memory address.@Nullable public static XXH64Canonical createSafe(long address)
public static XXH64Canonical.Buffer malloc(int capacity)
XXH64Canonical.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XXH64Canonical.Buffer calloc(int capacity)
XXH64Canonical.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static XXH64Canonical.Buffer create(int capacity)
XXH64Canonical.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static XXH64Canonical.Buffer create(long address, int capacity)
XXH64Canonical.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static XXH64Canonical.Buffer createSafe(long address, int capacity)
public static XXH64Canonical mallocStack()
XXH64Canonical instance allocated on the thread-local MemoryStack.public static XXH64Canonical callocStack()
XXH64Canonical instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static XXH64Canonical mallocStack(org.lwjgl.system.MemoryStack stack)
XXH64Canonical instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static XXH64Canonical callocStack(org.lwjgl.system.MemoryStack stack)
XXH64Canonical instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static XXH64Canonical.Buffer mallocStack(int capacity)
XXH64Canonical.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static XXH64Canonical.Buffer callocStack(int capacity)
XXH64Canonical.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static XXH64Canonical.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XXH64Canonical.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static XXH64Canonical.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
XXH64Canonical.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.ByteBuffer ndigest(long struct)
digest().public static byte ndigest(long struct,
int index)
digest.Copyright LWJGL. All Rights Reserved. License terms.