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.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 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
ConstructorsConstructorDescriptionLZ4Stream(ByteBuffer container) Creates aLZ4Streaminstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic LZ4Streamcreate(long address) Returns a newLZ4Streaminstance for the specified memory address.static LZ4Stream.Buffercreate(long address, int capacity) Create aLZ4Stream.Bufferinstance at the specified memory.static @Nullable LZ4StreamcreateSafe(long address) static @Nullable LZ4Stream.BuffercreateSafe(long address, int capacity) static LZ4StreamInternalninternal_donotuse(long struct) Unsafe version ofinternal_donotuse().static PointerBufferntable(long struct) Unsafe version oftable().static longntable(long struct, int index) Unsafe version oftable.intsizeof()Returnssizeof(struct).table()longtable(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 aLZ4Streaminstance 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). -
table
- Returns:
- a
PointerBufferview of thetablefield.
-
table
public long table(int index) - Returns:
- the value at the specified index of the
tablefield.
-
internal_donotuse
- Returns:
- a
LZ4StreamInternalview of theinternal_donotusefield.
-
create
Returns a newLZ4Streaminstance for the specified memory address. -
createSafe
-
create
Create aLZ4Stream.Bufferinstance 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().
-