Package org.lwjgl.util.lz4
Class LZ4HCCCtxInternal
- All Implemented Interfaces:
Pointer
struct LZ4HC_CCtx_internal {
LZ4_u32 hashTable[LZ4HC_HASHTABLESIZE];
LZ4_u16 chainTable[LZ4HC_MAXD];
LZ4_byte const * end;
LZ4_byte const * prefixStart;
LZ4_byte const * dictStart;
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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionLZ4HCCCtxInternal(ByteBuffer container) Creates aLZ4HCCCtxInternalinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionshortchainTable(int index) shortstatic LZ4HCCCtxInternalcreate(long address) Returns a newLZ4HCCCtxInternalinstance for the specified memory address.static LZ4HCCCtxInternal.Buffercreate(long address, int capacity) Create aLZ4HCCCtxInternal.Bufferinstance at the specified memory.static @Nullable LZ4HCCCtxInternalcreateSafe(long address) static @Nullable LZ4HCCCtxInternal.BuffercreateSafe(long address, int capacity) dictCtx()intdictStart(int capacity) bytedirty()end(int capacity) byteinthashTable(int index) intlowLimit()static ShortBuffernchainTable(long struct) Unsafe version ofchainTable().static shortnchainTable(long struct, int index) Unsafe version ofchainTable.static shortncompressionLevel(long struct) Unsafe version ofcompressionLevel().static LZ4HCCCtxInternalndictCtx(long struct) Unsafe version ofdictCtx().static intndictLimit(long struct) Unsafe version ofdictLimit().static ByteBufferndictStart(long struct, int capacity) Unsafe version ofdictStart.static bytendirty(long struct) Unsafe version ofdirty().static ByteBuffernend(long struct, int capacity) Unsafe version ofend.intstatic bytenfavorDecSpeed(long struct) Unsafe version offavorDecSpeed().static IntBuffernhashTable(long struct) Unsafe version ofhashTable().static intnhashTable(long struct, int index) Unsafe version ofhashTable.static intnlowLimit(long struct) Unsafe version oflowLimit().static intnnextToUpdate(long struct) Unsafe version ofnextToUpdate().static ByteBuffernprefixStart(long struct, int capacity) Unsafe version ofprefixStart.prefixStart(int capacity) intsizeof()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 aLZ4HCCCtxInternalinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<LZ4HCCCtxInternal>
-
hashTable
- Returns:
- a
IntBufferview of thehashTablefield.
-
hashTable
public int hashTable(int index) - Returns:
- the value at the specified index of the
hashTablefield.
-
chainTable
- Returns:
- a
ShortBufferview of thechainTablefield.
-
chainTable
public short chainTable(int index) - Returns:
- the value at the specified index of the
chainTablefield.
-
end
- Returns:
- a
ByteBufferview of the data pointed to by theendfield.
-
prefixStart
- Returns:
- a
ByteBufferview of the data pointed to by theprefixStartfield.
-
dictStart
- Returns:
- a
ByteBufferview of the data pointed to by thedictStartfield.
-
dictLimit
public int dictLimit()- Returns:
- the value of the
dictLimitfield.
-
lowLimit
public int lowLimit()- Returns:
- the value of the
lowLimitfield.
-
nextToUpdate
public int nextToUpdate()- Returns:
- the value of the
nextToUpdatefield.
-
compressionLevel
public short compressionLevel()- Returns:
- the value of the
compressionLevelfield.
-
favorDecSpeed
public byte favorDecSpeed()- Returns:
- the value of the
favorDecSpeedfield.
-
dirty
public byte dirty()- Returns:
- the value of the
dirtyfield.
-
dictCtx
- Returns:
- a
LZ4HCCCtxInternalview of the struct pointed to by thedictCtxfield.
-
create
Returns a newLZ4HCCCtxInternalinstance for the specified memory address. -
createSafe
-
create
Create aLZ4HCCCtxInternal.Bufferinstance 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().
-