Package org.lwjgl.util.lz4
Class LZ4Stream
- All Implemented Interfaces:
Pointer
union LZ4_stream_t {
void * table[LZ4_STREAM_MINSIZE];
{@link LZ4StreamInternal struct LZ4_stream_t_internal} internal_donotuse;
}
-
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 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
ConstructorsConstructorDescriptionLZ4Stream
(ByteBuffer container) Creates aLZ4Stream
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic LZ4Stream
create
(long address) Returns a newLZ4Stream
instance for the specified memory address.static LZ4Stream.Buffer
create
(long address, int capacity) Create aLZ4Stream.Buffer
instance at the specified memory.static @Nullable LZ4Stream
createSafe
(long address) static @Nullable LZ4Stream.Buffer
createSafe
(long address, int capacity) static LZ4StreamInternal
ninternal_donotuse
(long struct) Unsafe version ofinternal_donotuse()
.static PointerBuffer
ntable
(long struct) Unsafe version oftable()
.static long
ntable
(long struct, int index) Unsafe version oftable
.int
sizeof()
Returnssizeof(struct)
.table()
long
table
(int index) 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. -
TABLE
public static final int TABLEThe struct member offsets. -
INTERNAL_DONOTUSE
public static final int INTERNAL_DONOTUSEThe struct member offsets.
-
-
Constructor Details
-
LZ4Stream
Creates aLZ4Stream
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)
. -
table
- Returns:
- a
PointerBuffer
view of thetable
field.
-
table
public long table(int index) - Returns:
- the value at the specified index of the
table
field.
-
internal_donotuse
- Returns:
- a
LZ4StreamInternal
view of theinternal_donotuse
field.
-
create
Returns a newLZ4Stream
instance for the specified memory address. -
createSafe
-
create
Create aLZ4Stream.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
ntable
Unsafe version oftable()
. -
ntable
public static long ntable(long struct, int index) Unsafe version oftable
. -
ninternal_donotuse
Unsafe version ofinternal_donotuse()
.
-