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;
{@link LZ4StreamInternal 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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier 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 size in bytes.static final int
The 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 aLZ4StreamInternal
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic LZ4StreamInternal
create
(long address) Returns a newLZ4StreamInternal
instance for the specified memory address.static LZ4StreamInternal.Buffer
create
(long address, int capacity) Create aLZ4StreamInternal.Buffer
instance at the specified memory.static @Nullable LZ4StreamInternal
createSafe
(long address) static @Nullable LZ4StreamInternal.Buffer
createSafe
(long address, int capacity) int
dictCtx()
dictionary
(int capacity) int
dictSize()
int
hashTable
(int index) static int
ncurrentOffset
(long struct) Unsafe version ofcurrentOffset()
.static LZ4StreamInternal
ndictCtx
(long struct) Unsafe version ofdictCtx()
.static ByteBuffer
ndictionary
(long struct, int capacity) Unsafe version ofdictionary
.static int
ndictSize
(long struct) Unsafe version ofdictSize()
.static IntBuffer
nhashTable
(long struct) Unsafe version ofhashTable()
.static int
nhashTable
(long struct, int index) Unsafe version ofhashTable
.static int
ntableType
(long struct) Unsafe version oftableType()
.int
sizeof()
Returnssizeof(struct)
.int
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. -
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 aLZ4StreamInternal
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<LZ4StreamInternal>
-
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.
-
dictionary
- Returns:
- a
ByteBuffer
view of the data pointed to by thedictionary
field.
-
dictCtx
- Returns:
- a
LZ4StreamInternal
view of the struct pointed to by thedictCtx
field.
-
currentOffset
public int currentOffset()- Returns:
- the value of the
currentOffset
field.
-
tableType
public int tableType()- Returns:
- the value of the
tableType
field.
-
dictSize
public int dictSize()- Returns:
- the value of the
dictSize
field.
-
create
Returns a newLZ4StreamInternal
instance for the specified memory address. -
createSafe
-
create
Create aLZ4StreamInternal.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
. -
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()
.
-