public class LZ4HCCCtxInternal
extends org.lwjgl.system.Struct
end – next block here to continue on current prefixbase – All index relative to this positiondictBase – alternate base for extDictdictLimit – below that point, need extDictlowLimit – below that point, no more dictnextToUpdate – index from which to continue dictionary updatefavorDecSpeed – favor decompression speed if this flag set, otherwise, favor compression ratiodirty – stream has to be fully reset if this flag is set
struct LZ4HC_CCtx_internal {
uint32_t hashTable[LZ4HC_HASHTABLESIZE];
uint16_t chainTable[LZ4HC_MAXD];
uint8_t const * end;
uint8_t const * base;
uint8_t const * dictBase;
uint32_t dictLimit;
uint32_t lowLimit;
uint32_t nextToUpdate;
short compressionLevel;
int8_t favorDecSpeed;
int8_t dirty;
LZ4HC_CCtx_internal * const dictCtx;
}| Modifier and Type | Class and Description |
|---|---|
static class |
LZ4HCCCtxInternal.Buffer
An array of
LZ4HCCCtxInternal structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BASE
The struct member offsets.
|
static int |
CHAINTABLE
The struct member offsets.
|
static int |
COMPRESSIONLEVEL
The struct member offsets.
|
static int |
DICTBASE
The struct member offsets.
|
static int |
DICTCTX
The struct member offsets.
|
static int |
DICTLIMIT
The struct member offsets.
|
static int |
DIRTY
The struct member offsets.
|
static int |
END
The struct member offsets.
|
static int |
FAVORDECSPEED
The struct member offsets.
|
static int |
HASHTABLE
The struct member offsets.
|
static int |
LOWLIMIT
The struct member offsets.
|
static int |
NEXTTOUPDATE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
LZ4HCCCtxInternal(java.nio.ByteBuffer container)
Creates a
LZ4HCCCtxInternal instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
base(int capacity)
Returns a
ByteBuffer view of the data pointed to by the base field. |
java.nio.ShortBuffer |
chainTable()
Returns a
ShortBuffer view of the chainTable field. |
short |
chainTable(int index)
Returns the value at the specified index of the
chainTable field. |
short |
compressionLevel()
Returns the value of the
compressionLevel field. |
static LZ4HCCCtxInternal |
create(long address)
Returns a new
LZ4HCCCtxInternal instance for the specified memory address. |
static LZ4HCCCtxInternal.Buffer |
create(long address,
int capacity)
Create a
LZ4HCCCtxInternal.Buffer instance at the specified memory. |
static LZ4HCCCtxInternal |
createSafe(long address)
|
static LZ4HCCCtxInternal.Buffer |
createSafe(long address,
int capacity)
|
java.nio.ByteBuffer |
dictBase(int capacity)
Returns a
ByteBuffer view of the data pointed to by the dictBase field. |
LZ4HCCCtxInternal |
dictCtx()
Returns a
LZ4HCCCtxInternal view of the struct pointed to by the dictCtx field. |
int |
dictLimit()
Returns the value of the
dictLimit field. |
byte |
dirty()
Returns the value of the
dirty field. |
java.nio.ByteBuffer |
end(int capacity)
Returns a
ByteBuffer view of the data pointed to by the end field. |
byte |
favorDecSpeed()
Returns the value of the
favorDecSpeed 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. |
int |
lowLimit()
Returns the value of the
lowLimit field. |
static java.nio.ByteBuffer |
nbase(long struct,
int capacity)
Unsafe version of
base. |
static java.nio.ShortBuffer |
nchainTable(long struct)
Unsafe version of
chainTable(). |
static short |
nchainTable(long struct,
int index)
Unsafe version of
chainTable. |
static short |
ncompressionLevel(long struct)
Unsafe version of
compressionLevel(). |
static java.nio.ByteBuffer |
ndictBase(long struct,
int capacity)
Unsafe version of
dictBase. |
static LZ4HCCCtxInternal |
ndictCtx(long struct)
Unsafe version of
dictCtx(). |
static int |
ndictLimit(long struct)
Unsafe version of
dictLimit(). |
static byte |
ndirty(long struct)
Unsafe version of
dirty(). |
static java.nio.ByteBuffer |
nend(long struct,
int capacity)
Unsafe version of
end. |
int |
nextToUpdate()
Returns the value of the
nextToUpdate field. |
static byte |
nfavorDecSpeed(long struct)
Unsafe version of
favorDecSpeed(). |
static java.nio.IntBuffer |
nhashTable(long struct)
Unsafe version of
hashTable(). |
static int |
nhashTable(long struct,
int index)
Unsafe version of
hashTable. |
static int |
nlowLimit(long struct)
Unsafe version of
lowLimit(). |
static int |
nnextToUpdate(long struct)
Unsafe version of
nextToUpdate(). |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int HASHTABLE
public static final int CHAINTABLE
public static final int END
public static final int BASE
public static final int DICTBASE
public static final int DICTLIMIT
public static final int LOWLIMIT
public static final int NEXTTOUPDATE
public static final int COMPRESSIONLEVEL
public static final int FAVORDECSPEED
public static final int DIRTY
public static final int DICTCTX
public LZ4HCCCtxInternal(java.nio.ByteBuffer container)
LZ4HCCCtxInternal 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 java.nio.ShortBuffer chainTable()
ShortBuffer view of the chainTable field.public short chainTable(int index)
chainTable field.public java.nio.ByteBuffer end(int capacity)
ByteBuffer view of the data pointed to by the end field.capacity - the number of elements in the returned bufferpublic java.nio.ByteBuffer base(int capacity)
ByteBuffer view of the data pointed to by the base field.capacity - the number of elements in the returned bufferpublic java.nio.ByteBuffer dictBase(int capacity)
ByteBuffer view of the data pointed to by the dictBase field.capacity - the number of elements in the returned bufferpublic int dictLimit()
dictLimit field.public int lowLimit()
lowLimit field.public int nextToUpdate()
nextToUpdate field.public short compressionLevel()
compressionLevel field.public byte favorDecSpeed()
favorDecSpeed field.public byte dirty()
dirty field.public LZ4HCCCtxInternal dictCtx()
LZ4HCCCtxInternal view of the struct pointed to by the dictCtx field.public static LZ4HCCCtxInternal create(long address)
LZ4HCCCtxInternal instance for the specified memory address.@Nullable public static LZ4HCCCtxInternal createSafe(long address)
public static LZ4HCCCtxInternal.Buffer create(long address, int capacity)
LZ4HCCCtxInternal.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static LZ4HCCCtxInternal.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 java.nio.ShortBuffer nchainTable(long struct)
chainTable().public static short nchainTable(long struct,
int index)
chainTable.public static java.nio.ByteBuffer nend(long struct,
int capacity)
end.public static java.nio.ByteBuffer nbase(long struct,
int capacity)
base.public static java.nio.ByteBuffer ndictBase(long struct,
int capacity)
dictBase.public static int ndictLimit(long struct)
dictLimit().public static int nlowLimit(long struct)
lowLimit().public static int nnextToUpdate(long struct)
nextToUpdate().public static short ncompressionLevel(long struct)
compressionLevel().public static byte nfavorDecSpeed(long struct)
favorDecSpeed().public static byte ndirty(long struct)
dirty().public static LZ4HCCCtxInternal ndictCtx(long struct)
dictCtx().Copyright LWJGL. All Rights Reserved. License terms.