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