Package org.lwjgl.util.lz4
Class LZ4StreamDecodeInternal
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.lz4.LZ4StreamDecodeInternal
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class LZ4StreamDecodeInternal extends org.lwjgl.system.StructLayout
struct LZ4_streamDecode_t_internal { LZ4_byte const * externalDict; size_t extDictSize; LZ4_byte const * prefixEnd; size_t prefixSize; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLZ4StreamDecodeInternal.BufferAn array ofLZ4StreamDecodeInternalstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intEXTDICTSIZE
EXTERNALDICT
PREFIXEND
PREFIXSIZEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description LZ4StreamDecodeInternal(java.nio.ByteBuffer container)Creates aLZ4StreamDecodeInternalinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LZ4StreamDecodeInternalcreate(long address)Returns a newLZ4StreamDecodeInternalinstance for the specified memory address.static LZ4StreamDecodeInternal.Buffercreate(long address, int capacity)Create aLZ4StreamDecodeInternal.Bufferinstance at the specified memory.static LZ4StreamDecodeInternalcreateSafe(long address)static LZ4StreamDecodeInternal.BuffercreateSafe(long address, int capacity)longextDictSize()java.nio.ByteBufferexternalDict(int capacity)static longnextDictSize(long struct)Unsafe version ofextDictSize().static java.nio.ByteBuffernexternalDict(long struct, int capacity)Unsafe version ofexternalDict.static java.nio.ByteBuffernprefixEnd(long struct, int capacity)Unsafe version ofprefixEnd.static longnprefixSize(long struct)Unsafe version ofprefixSize().java.nio.ByteBufferprefixEnd(int capacity)longprefixSize()intsizeof()
-
-
-
Constructor Detail
-
LZ4StreamDecodeInternal
public LZ4StreamDecodeInternal(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
externalDict
public java.nio.ByteBuffer externalDict(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
ByteBufferview of the data pointed to by theexternalDictfield.
-
extDictSize
public long extDictSize()
- Returns:
- the value of the
extDictSizefield.
-
prefixEnd
public java.nio.ByteBuffer prefixEnd(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
ByteBufferview of the data pointed to by theprefixEndfield.
-
prefixSize
public long prefixSize()
- Returns:
- the value of the
prefixSizefield.
-
create
public static LZ4StreamDecodeInternal create(long address)
Returns a newLZ4StreamDecodeInternalinstance for the specified memory address.
-
createSafe
@Nullable public static LZ4StreamDecodeInternal createSafe(long address)
-
create
public static LZ4StreamDecodeInternal.Buffer create(long address, int capacity)
Create aLZ4StreamDecodeInternal.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static LZ4StreamDecodeInternal.Buffer createSafe(long address, int capacity)
-
nexternalDict
public static java.nio.ByteBuffer nexternalDict(long struct, int capacity)Unsafe version ofexternalDict.
-
nextDictSize
public static long nextDictSize(long struct)
Unsafe version ofextDictSize().
-
nprefixEnd
public static java.nio.ByteBuffer nprefixEnd(long struct, int capacity)Unsafe version ofprefixEnd.
-
nprefixSize
public static long nprefixSize(long struct)
Unsafe version ofprefixSize().
-
-