Package org.lwjgl.util.lz4
Class LZ4StreamDecode
- All Implemented Interfaces:
Pointer
union LZ4_streamDecode_t {
char minStateSize[LZ4_STREAMDECODE_MINSIZE];
{@link LZ4StreamDecodeInternal LZ4_streamDecode_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 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
ConstructorsConstructorDescriptionLZ4StreamDecode(ByteBuffer container) Creates aLZ4StreamDecodeinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic LZ4StreamDecodecreate(long address) Returns a newLZ4StreamDecodeinstance for the specified memory address.static LZ4StreamDecode.Buffercreate(long address, int capacity) Create aLZ4StreamDecode.Bufferinstance at the specified memory.static @Nullable LZ4StreamDecodecreateSafe(long address) static @Nullable LZ4StreamDecode.BuffercreateSafe(long address, int capacity) byteminStateSize(int index) static LZ4StreamDecodeInternalninternal_donotuse(long struct) Unsafe version ofinternal_donotuse().static ByteBuffernminStateSize(long struct) Unsafe version ofminStateSize().static bytenminStateSize(long struct, int index) Unsafe version ofminStateSize.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. -
MINSTATESIZE
public static final int MINSTATESIZEThe struct member offsets. -
INTERNAL_DONOTUSE
public static final int INTERNAL_DONOTUSEThe struct member offsets.
-
-
Constructor Details
-
LZ4StreamDecode
Creates aLZ4StreamDecodeinstance 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<LZ4StreamDecode>
-
minStateSize
- Returns:
- a
ByteBufferview of theminStateSizefield.
-
minStateSize
public byte minStateSize(int index) - Returns:
- the value at the specified index of the
minStateSizefield.
-
internal_donotuse
- Returns:
- a
LZ4StreamDecodeInternalview of theinternal_donotusefield.
-
create
Returns a newLZ4StreamDecodeinstance for the specified memory address. -
createSafe
-
create
Create aLZ4StreamDecode.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nminStateSize
Unsafe version ofminStateSize(). -
nminStateSize
public static byte nminStateSize(long struct, int index) Unsafe version ofminStateSize. -
ninternal_donotuse
Unsafe version ofinternal_donotuse().
-