Package org.lwjgl.util.lz4
Class LZ4StreamDecodeInternal
- All Implemented Interfaces:
Pointer
struct LZ4_streamDecode_t_internal {
LZ4_byte const * externalDict;
LZ4_byte const * prefixEnd;
size_t extDictSize;
size_t prefixSize;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionLZ4StreamDecodeInternal(ByteBuffer container) Creates aLZ4StreamDecodeInternalinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic LZ4StreamDecodeInternalcreate(long address) Returns a newLZ4StreamDecodeInternalinstance for the specified memory address.create(long address, int capacity) Create aLZ4StreamDecodeInternal.Bufferinstance at the specified memory.static @Nullable LZ4StreamDecodeInternalcreateSafe(long address) static @Nullable LZ4StreamDecodeInternal.BuffercreateSafe(long address, int capacity) longexternalDict(int capacity) static longnextDictSize(long struct) Unsafe version ofextDictSize().static ByteBuffernexternalDict(long struct, int capacity) Unsafe version ofexternalDict.static ByteBuffernprefixEnd(long struct, int capacity) Unsafe version ofprefixEnd.static longnprefixSize(long struct) Unsafe version ofprefixSize().prefixEnd(int capacity) longintsizeof()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. -
EXTERNALDICT
public static final int EXTERNALDICTThe struct member offsets. -
PREFIXEND
public static final int PREFIXENDThe struct member offsets. -
EXTDICTSIZE
public static final int EXTDICTSIZEThe struct member offsets. -
PREFIXSIZE
public static final int PREFIXSIZEThe struct member offsets.
-
-
Constructor Details
-
LZ4StreamDecodeInternal
Creates aLZ4StreamDecodeInternalinstance 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<LZ4StreamDecodeInternal>
-
externalDict
- Returns:
- a
ByteBufferview of the data pointed to by theexternalDictfield.
-
prefixEnd
- Returns:
- a
ByteBufferview of the data pointed to by theprefixEndfield.
-
extDictSize
public long extDictSize()- Returns:
- the value of the
extDictSizefield.
-
prefixSize
public long prefixSize()- Returns:
- the value of the
prefixSizefield.
-
create
Returns a newLZ4StreamDecodeInternalinstance for the specified memory address. -
createSafe
-
create
Create aLZ4StreamDecodeInternal.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nexternalDict
Unsafe version ofexternalDict. -
nprefixEnd
Unsafe version ofprefixEnd. -
nextDictSize
public static long nextDictSize(long struct) Unsafe version ofextDictSize(). -
nprefixSize
public static long nprefixSize(long struct) Unsafe version ofprefixSize().
-