Package org.lwjgl.util.lz4
Class LZ4HCCCtxInternal
- All Implemented Interfaces:
Pointer
Layout
struct LZ4HC_CCtx_internal {
LZ4_u32 hashTable[LZ4HC_HASHTABLESIZE];
LZ4_u16 chainTable[LZ4HC_MAXD];
LZ4_byte const * end(int)
;
LZ4_byte const * prefixStart(int)
;
LZ4_byte const * dictStart(int)
;
LZ4_u32 dictLimit()
;
LZ4_u32 lowLimit()
;
LZ4_u32 nextToUpdate()
;
short compressionLevel;
LZ4_i8 favorDecSpeed()
;
LZ4_i8 dirty()
;
LZ4HC_CCtx_internal
* const dictCtx;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionLZ4HCCCtxInternal
(ByteBuffer container) Creates aLZ4HCCCtxInternal
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionshort
chainTable
(int index) short
static LZ4HCCCtxInternal
create
(long address) Returns a newLZ4HCCCtxInternal
instance for the specified memory address.static LZ4HCCCtxInternal.Buffer
create
(long address, int capacity) Create aLZ4HCCCtxInternal.Buffer
instance at the specified memory.static LZ4HCCCtxInternal
createSafe
(long address) static LZ4HCCCtxInternal.Buffer
createSafe
(long address, int capacity) dictCtx()
int
below that point, needextDict
dictStart
(int capacity) byte
dirty()
stream has to be fully reset if this flag is setend
(int capacity) byte
favor decompression speed if this flag set, otherwise, favor compression ratioint
hashTable
(int index) int
lowLimit()
below that point, no moredict
static ShortBuffer
nchainTable
(long struct) Unsafe version ofchainTable()
.static short
nchainTable
(long struct, int index) Unsafe version ofchainTable
.static short
ncompressionLevel
(long struct) Unsafe version ofcompressionLevel()
.static LZ4HCCCtxInternal
ndictCtx
(long struct) Unsafe version ofdictCtx()
.static int
ndictLimit
(long struct) Unsafe version ofdictLimit()
.static ByteBuffer
ndictStart
(long struct, int capacity) Unsafe version ofdictStart
.static byte
ndirty
(long struct) Unsafe version ofdirty()
.static ByteBuffer
nend
(long struct, int capacity) Unsafe version ofend
.int
index from which to continue dictionary updatestatic byte
nfavorDecSpeed
(long struct) Unsafe version offavorDecSpeed()
.static IntBuffer
nhashTable
(long struct) Unsafe version ofhashTable()
.static int
nhashTable
(long struct, int index) Unsafe version ofhashTable
.static int
nlowLimit
(long struct) Unsafe version oflowLimit()
.static int
nnextToUpdate
(long struct) Unsafe version ofnextToUpdate()
.static ByteBuffer
nprefixStart
(long struct, int capacity) Unsafe version ofprefixStart
.prefixStart
(int capacity) int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
HASHTABLE
public static final int HASHTABLEThe struct member offsets. -
CHAINTABLE
public static final int CHAINTABLEThe struct member offsets. -
END
public static final int ENDThe struct member offsets. -
PREFIXSTART
public static final int PREFIXSTARTThe struct member offsets. -
DICTSTART
public static final int DICTSTARTThe struct member offsets. -
DICTLIMIT
public static final int DICTLIMITThe struct member offsets. -
LOWLIMIT
public static final int LOWLIMITThe struct member offsets. -
NEXTTOUPDATE
public static final int NEXTTOUPDATEThe struct member offsets. -
COMPRESSIONLEVEL
public static final int COMPRESSIONLEVELThe struct member offsets. -
FAVORDECSPEED
public static final int FAVORDECSPEEDThe struct member offsets. -
DIRTY
public static final int DIRTYThe struct member offsets. -
DICTCTX
public static final int DICTCTXThe struct member offsets.
-
-
Constructor Details
-
LZ4HCCCtxInternal
Creates aLZ4HCCCtxInternal
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<LZ4HCCCtxInternal>
-
hashTable
- Returns:
- a
IntBuffer
view of thehashTable
field.
-
hashTable
public int hashTable(int index) - Returns:
- the value at the specified index of the
hashTable
field.
-
chainTable
- Returns:
- a
ShortBuffer
view of thechainTable
field.
-
chainTable
public short chainTable(int index) - Returns:
- the value at the specified index of the
chainTable
field.
-
end
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- next block here to continue on current prefix
-
prefixStart
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- Indexes relative to this position
-
dictStart
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- alternate reference for
extDict
-
dictLimit
public int dictLimit()below that point, needextDict
-
lowLimit
public int lowLimit()below that point, no moredict
-
nextToUpdate
public int nextToUpdate()index from which to continue dictionary update -
compressionLevel
public short compressionLevel()- Returns:
- the value of the
compressionLevel
field.
-
favorDecSpeed
public byte favorDecSpeed()favor decompression speed if this flag set, otherwise, favor compression ratio -
dirty
public byte dirty()stream has to be fully reset if this flag is set -
dictCtx
- Returns:
- a
LZ4HCCCtxInternal
view of the struct pointed to by thedictCtx
field.
-
create
Returns a newLZ4HCCCtxInternal
instance for the specified memory address. -
createSafe
-
create
Create aLZ4HCCCtxInternal.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nhashTable
Unsafe version ofhashTable()
. -
nhashTable
public static int nhashTable(long struct, int index) Unsafe version ofhashTable
. -
nchainTable
Unsafe version ofchainTable()
. -
nchainTable
public static short nchainTable(long struct, int index) Unsafe version ofchainTable
. -
nend
Unsafe version ofend
. -
nprefixStart
Unsafe version ofprefixStart
. -
ndictStart
Unsafe version ofdictStart
. -
ndictLimit
public static int ndictLimit(long struct) Unsafe version ofdictLimit()
. -
nlowLimit
public static int nlowLimit(long struct) Unsafe version oflowLimit()
. -
nnextToUpdate
public static int nnextToUpdate(long struct) Unsafe version ofnextToUpdate()
. -
ncompressionLevel
public static short ncompressionLevel(long struct) Unsafe version ofcompressionLevel()
. -
nfavorDecSpeed
public static byte nfavorDecSpeed(long struct) Unsafe version offavorDecSpeed()
. -
ndirty
public static byte ndirty(long struct) Unsafe version ofdirty()
. -
ndictCtx
Unsafe version ofdictCtx()
.
-