Package org.lwjgl.util.lz4
Class LZ4StreamInternal
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.lz4.LZ4StreamInternal
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class LZ4StreamInternal extends org.lwjgl.system.StructLayout
struct LZ4_stream_t_internal { LZ4_u32 hashTable[LZ4_HASH_SIZE_U32]; LZ4_u32 currentOffset; LZ4_u32 tableType; LZ4_byte const * dictionary;LZ4_stream_t_internal* const dictCtx; LZ4_u32 dictSize; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLZ4StreamInternal.BufferAn array ofLZ4StreamInternalstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCURRENTOFFSET
DICTCTX
DICTIONARY
DICTSIZE
HASHTABLEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTABLETYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description LZ4StreamInternal(java.nio.ByteBuffer container)Creates aLZ4StreamInternalinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LZ4StreamInternalcreate(long address)Returns a newLZ4StreamInternalinstance for the specified memory address.static LZ4StreamInternal.Buffercreate(long address, int capacity)Create aLZ4StreamInternal.Bufferinstance at the specified memory.static LZ4StreamInternalcreateSafe(long address)static LZ4StreamInternal.BuffercreateSafe(long address, int capacity)intcurrentOffset()LZ4StreamInternaldictCtx()java.nio.ByteBufferdictionary(int capacity)intdictSize()java.nio.IntBufferhashTable()inthashTable(int index)static intncurrentOffset(long struct)Unsafe version ofcurrentOffset().static LZ4StreamInternalndictCtx(long struct)Unsafe version ofdictCtx().static java.nio.ByteBufferndictionary(long struct, int capacity)Unsafe version ofdictionary.static intndictSize(long struct)Unsafe version ofdictSize().static java.nio.IntBuffernhashTable(long struct)Unsafe version ofhashTable().static intnhashTable(long struct, int index)Unsafe version ofhashTable.static intntableType(long struct)Unsafe version oftableType().intsizeof()inttableType()
-
-
-
Constructor Detail
-
LZ4StreamInternal
public LZ4StreamInternal(java.nio.ByteBuffer container)
Creates aLZ4StreamInternalinstance 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
-
hashTable
public java.nio.IntBuffer hashTable()
- Returns:
- a
IntBufferview of thehashTablefield.
-
hashTable
public int hashTable(int index)
- Returns:
- the value at the specified index of the
hashTablefield.
-
currentOffset
public int currentOffset()
- Returns:
- the value of the
currentOffsetfield.
-
tableType
public int tableType()
- Returns:
- the value of the
tableTypefield.
-
dictionary
public java.nio.ByteBuffer dictionary(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
ByteBufferview of the data pointed to by thedictionaryfield.
-
dictCtx
public LZ4StreamInternal dictCtx()
- Returns:
- a
LZ4StreamInternalview of the struct pointed to by thedictCtxfield.
-
dictSize
public int dictSize()
- Returns:
- the value of the
dictSizefield.
-
create
public static LZ4StreamInternal create(long address)
Returns a newLZ4StreamInternalinstance for the specified memory address.
-
createSafe
@Nullable public static LZ4StreamInternal createSafe(long address)
-
create
public static LZ4StreamInternal.Buffer create(long address, int capacity)
Create aLZ4StreamInternal.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static LZ4StreamInternal.Buffer createSafe(long address, int capacity)
-
nhashTable
public static java.nio.IntBuffer nhashTable(long struct)
Unsafe version ofhashTable().
-
nhashTable
public static int nhashTable(long struct, int index)Unsafe version ofhashTable.
-
ncurrentOffset
public static int ncurrentOffset(long struct)
Unsafe version ofcurrentOffset().
-
ntableType
public static int ntableType(long struct)
Unsafe version oftableType().
-
ndictionary
public static java.nio.ByteBuffer ndictionary(long struct, int capacity)Unsafe version ofdictionary.
-
ndictCtx
public static LZ4StreamInternal ndictCtx(long struct)
Unsafe version ofdictCtx().
-
ndictSize
public static int ndictSize(long struct)
Unsafe version ofdictSize().
-
-