Package org.lwjgl.util.lz4
Class LZ4StreamInternal
- All Implemented Interfaces:
Pointer
struct LZ4_stream_t_internal {
LZ4_u32 hashTable[LZ4_HASH_SIZE_U32];
LZ4_byte const * dictionary;
LZ4_stream_t_internal * const dictCtx;
LZ4_u32 currentOffset;
LZ4_u32 tableType;
LZ4_u32 dictSize;
}-
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 size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionLZ4StreamInternal(ByteBuffer container) Creates aLZ4StreamInternalinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic LZ4StreamInternalcreate(long address) Returns a newLZ4StreamInternalinstance for the specified memory address.static LZ4StreamInternal.Buffercreate(long address, int capacity) Create aLZ4StreamInternal.Bufferinstance at the specified memory.static @Nullable LZ4StreamInternalcreateSafe(long address) static @Nullable LZ4StreamInternal.BuffercreateSafe(long address, int capacity) intdictCtx()dictionary(int capacity) intdictSize()inthashTable(int index) static intncurrentOffset(long struct) Unsafe version ofcurrentOffset().static LZ4StreamInternalndictCtx(long struct) Unsafe version ofdictCtx().static ByteBufferndictionary(long struct, int capacity) Unsafe version ofdictionary.static intndictSize(long struct) Unsafe version ofdictSize().static IntBuffernhashTable(long struct) Unsafe version ofhashTable().static intnhashTable(long struct, int index) Unsafe version ofhashTable.static intntableType(long struct) Unsafe version oftableType().intsizeof()Returnssizeof(struct).intMethods 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. -
DICTIONARY
public static final int DICTIONARYThe struct member offsets. -
DICTCTX
public static final int DICTCTXThe struct member offsets. -
CURRENTOFFSET
public static final int CURRENTOFFSETThe struct member offsets. -
TABLETYPE
public static final int TABLETYPEThe struct member offsets. -
DICTSIZE
public static final int DICTSIZEThe struct member offsets.
-
-
Constructor Details
-
LZ4StreamInternal
Creates aLZ4StreamInternalinstance 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<LZ4StreamInternal>
-
hashTable
- Returns:
- a
IntBufferview of thehashTablefield.
-
hashTable
public int hashTable(int index) - Returns:
- the value at the specified index of the
hashTablefield.
-
dictionary
- Returns:
- a
ByteBufferview of the data pointed to by thedictionaryfield.
-
dictCtx
- Returns:
- a
LZ4StreamInternalview of the struct pointed to by thedictCtxfield.
-
currentOffset
public int currentOffset()- Returns:
- the value of the
currentOffsetfield.
-
tableType
public int tableType()- Returns:
- the value of the
tableTypefield.
-
dictSize
public int dictSize()- Returns:
- the value of the
dictSizefield.
-
create
Returns a newLZ4StreamInternalinstance for the specified memory address. -
createSafe
-
create
Create aLZ4StreamInternal.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. -
ndictionary
Unsafe version ofdictionary. -
ndictCtx
Unsafe version ofdictCtx(). -
ncurrentOffset
public static int ncurrentOffset(long struct) Unsafe version ofcurrentOffset(). -
ntableType
public static int ntableType(long struct) Unsafe version oftableType(). -
ndictSize
public static int ndictSize(long struct) Unsafe version ofdictSize().
-