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.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 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 aLZ4StreamDecodeInternal
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic LZ4StreamDecodeInternal
create
(long address) Returns a newLZ4StreamDecodeInternal
instance for the specified memory address.create
(long address, int capacity) Create aLZ4StreamDecodeInternal.Buffer
instance at the specified memory.static @Nullable LZ4StreamDecodeInternal
createSafe
(long address) static @Nullable LZ4StreamDecodeInternal.Buffer
createSafe
(long address, int capacity) long
externalDict
(int capacity) static long
nextDictSize
(long struct) Unsafe version ofextDictSize()
.static ByteBuffer
nexternalDict
(long struct, int capacity) Unsafe version ofexternalDict
.static ByteBuffer
nprefixEnd
(long struct, int capacity) Unsafe version ofprefixEnd
.static long
nprefixSize
(long struct) Unsafe version ofprefixSize()
.prefixEnd
(int capacity) long
int
sizeof()
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 aLZ4StreamDecodeInternal
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<LZ4StreamDecodeInternal>
-
externalDict
- Returns:
- a
ByteBuffer
view of the data pointed to by theexternalDict
field.
-
prefixEnd
- Returns:
- a
ByteBuffer
view of the data pointed to by theprefixEnd
field.
-
extDictSize
public long extDictSize()- Returns:
- the value of the
extDictSize
field.
-
prefixSize
public long prefixSize()- Returns:
- the value of the
prefixSize
field.
-
create
Returns a newLZ4StreamDecodeInternal
instance for the specified memory address. -
createSafe
-
create
Create aLZ4StreamDecodeInternal.Buffer
instance 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()
.
-