public class LZ4StreamInternal
extends org.lwjgl.system.Struct
struct LZ4_stream_t_internal {
uint32_t hashTable[LZ4_HASH_SIZE_U32];
uint32_t currentOffset;
uint16_t dirty;
uint16_t tableType;
uint8_t const * dictionary;
LZ4_stream_t_internal * const dictCtx;
uint32_t dictSize;
}| Modifier and Type | Class and Description |
|---|---|
static class |
LZ4StreamInternal.Buffer
An array of
LZ4StreamInternal structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CURRENTOFFSET
The struct member offsets.
|
static int |
DICTCTX
The struct member offsets.
|
static int |
DICTIONARY
The struct member offsets.
|
static int |
DICTSIZE
The struct member offsets.
|
static int |
DIRTY
The struct member offsets.
|
static int |
HASHTABLE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TABLETYPE
The struct member offsets.
|
| Constructor and Description |
|---|
LZ4StreamInternal(java.nio.ByteBuffer container)
Creates a
LZ4StreamInternal instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static LZ4StreamInternal |
create(long address)
Returns a new
LZ4StreamInternal instance for the specified memory address. |
static LZ4StreamInternal.Buffer |
create(long address,
int capacity)
Create a
LZ4StreamInternal.Buffer instance at the specified memory. |
static LZ4StreamInternal |
createSafe(long address)
|
static LZ4StreamInternal.Buffer |
createSafe(long address,
int capacity)
|
int |
currentOffset()
Returns the value of the
currentOffset field. |
LZ4StreamInternal |
dictCtx()
Returns a
LZ4StreamInternal view of the struct pointed to by the dictCtx field. |
java.nio.ByteBuffer |
dictionary(int capacity)
Returns a
ByteBuffer view of the data pointed to by the dictionary field. |
int |
dictSize()
Returns the value of the
dictSize field. |
short |
dirty()
Returns the value of the
dirty field. |
java.nio.IntBuffer |
hashTable()
Returns a
IntBuffer view of the hashTable field. |
int |
hashTable(int index)
Returns the value at the specified index of the
hashTable field. |
static int |
ncurrentOffset(long struct)
Unsafe version of
currentOffset(). |
static LZ4StreamInternal |
ndictCtx(long struct)
Unsafe version of
dictCtx(). |
static java.nio.ByteBuffer |
ndictionary(long struct,
int capacity)
Unsafe version of
dictionary. |
static int |
ndictSize(long struct)
Unsafe version of
dictSize(). |
static short |
ndirty(long struct)
Unsafe version of
dirty(). |
static java.nio.IntBuffer |
nhashTable(long struct)
Unsafe version of
hashTable(). |
static int |
nhashTable(long struct,
int index)
Unsafe version of
hashTable. |
static short |
ntableType(long struct)
Unsafe version of
tableType(). |
int |
sizeof() |
short |
tableType()
Returns the value of the
tableType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int HASHTABLE
public static final int CURRENTOFFSET
public static final int DIRTY
public static final int TABLETYPE
public static final int DICTIONARY
public static final int DICTCTX
public static final int DICTSIZE
public LZ4StreamInternal(java.nio.ByteBuffer container)
LZ4StreamInternal 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.IntBuffer hashTable()
IntBuffer view of the hashTable field.public int hashTable(int index)
hashTable field.public int currentOffset()
currentOffset field.public short dirty()
dirty field.public short tableType()
tableType field.public java.nio.ByteBuffer dictionary(int capacity)
ByteBuffer view of the data pointed to by the dictionary field.capacity - the number of elements in the returned bufferpublic LZ4StreamInternal dictCtx()
LZ4StreamInternal view of the struct pointed to by the dictCtx field.public int dictSize()
dictSize field.public static LZ4StreamInternal create(long address)
LZ4StreamInternal instance for the specified memory address.@Nullable public static LZ4StreamInternal createSafe(long address)
public static LZ4StreamInternal.Buffer create(long address, int capacity)
LZ4StreamInternal.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static LZ4StreamInternal.Buffer createSafe(long address, int capacity)
public static java.nio.IntBuffer nhashTable(long struct)
hashTable().public static int nhashTable(long struct,
int index)
hashTable.public static int ncurrentOffset(long struct)
currentOffset().public static short ndirty(long struct)
dirty().public static short ntableType(long struct)
tableType().public static java.nio.ByteBuffer ndictionary(long struct,
int capacity)
dictionary.public static LZ4StreamInternal ndictCtx(long struct)
dictCtx().public static int ndictSize(long struct)
dictSize().Copyright LWJGL. All Rights Reserved. License terms.