Package org.lwjgl.util.lz4
Class LZ4HCCCtxInternal
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.lz4.LZ4HCCCtxInternal
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class LZ4HCCCtxInternal extends org.lwjgl.system.StructLayout
struct LZ4HC_CCtx_internal { LZ4_u32 hashTable[LZ4HC_HASHTABLESIZE]; LZ4_u16 chainTable[LZ4HC_MAXD]; LZ4_byte const *end(int); LZ4_byte const *base(int); LZ4_byte const *dictBase(int); LZ4_u32dictLimit(); LZ4_u32lowLimit(); LZ4_u32nextToUpdate(); short compressionLevel; LZ4_i8favorDecSpeed(); LZ4_i8dirty();LZ4HC_CCtx_internal* const dictCtx; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLZ4HCCCtxInternal.BufferAn array ofLZ4HCCCtxInternalstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBASE
CHAINTABLE
COMPRESSIONLEVEL
DICTBASE
DICTCTX
DICTLIMIT
DIRTY
END
FAVORDECSPEED
HASHTABLE
LOWLIMIT
NEXTTOUPDATEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description LZ4HCCCtxInternal(java.nio.ByteBuffer container)Creates aLZ4HCCCtxInternalinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBufferbase(int capacity)java.nio.ShortBufferchainTable()shortchainTable(int index)shortcompressionLevel()static LZ4HCCCtxInternalcreate(long address)Returns a newLZ4HCCCtxInternalinstance for the specified memory address.static LZ4HCCCtxInternal.Buffercreate(long address, int capacity)Create aLZ4HCCCtxInternal.Bufferinstance at the specified memory.static LZ4HCCCtxInternalcreateSafe(long address)static LZ4HCCCtxInternal.BuffercreateSafe(long address, int capacity)java.nio.ByteBufferdictBase(int capacity)LZ4HCCCtxInternaldictCtx()intdictLimit()below that point, needextDictbytedirty()stream has to be fully reset if this flag is setjava.nio.ByteBufferend(int capacity)bytefavorDecSpeed()favor decompression speed if this flag set, otherwise, favor compression ratiojava.nio.IntBufferhashTable()inthashTable(int index)intlowLimit()below that point, no moredictstatic java.nio.ByteBuffernbase(long struct, int capacity)Unsafe version ofbase.static java.nio.ShortBuffernchainTable(long struct)Unsafe version ofchainTable().static shortnchainTable(long struct, int index)Unsafe version ofchainTable.static shortncompressionLevel(long struct)Unsafe version ofcompressionLevel().static java.nio.ByteBufferndictBase(long struct, int capacity)Unsafe version ofdictBase.static LZ4HCCCtxInternalndictCtx(long struct)Unsafe version ofdictCtx().static intndictLimit(long struct)Unsafe version ofdictLimit().static bytendirty(long struct)Unsafe version ofdirty().static java.nio.ByteBuffernend(long struct, int capacity)Unsafe version ofend.intnextToUpdate()index from which to continue dictionary updatestatic bytenfavorDecSpeed(long struct)Unsafe version offavorDecSpeed().static java.nio.IntBuffernhashTable(long struct)Unsafe version ofhashTable().static intnhashTable(long struct, int index)Unsafe version ofhashTable.static intnlowLimit(long struct)Unsafe version oflowLimit().static intnnextToUpdate(long struct)Unsafe version ofnextToUpdate().intsizeof()
-
-
-
Constructor Detail
-
LZ4HCCCtxInternal
public LZ4HCCCtxInternal(java.nio.ByteBuffer container)
Creates aLZ4HCCCtxInternalinstance 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.
-
chainTable
public java.nio.ShortBuffer chainTable()
- Returns:
- a
ShortBufferview of thechainTablefield.
-
chainTable
public short chainTable(int index)
- Returns:
- the value at the specified index of the
chainTablefield.
-
end
public java.nio.ByteBuffer end(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- next block here to continue on current prefix
-
base
public java.nio.ByteBuffer base(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- All index relative to this position
-
dictBase
public java.nio.ByteBuffer dictBase(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- alternate base for
extDict
-
dictLimit
public int dictLimit()
below that point, needextDict
-
lowLimit
public int lowLimit()
below that point, no moredict
-
nextToUpdate
public int nextToUpdate()
index from which to continue dictionary update
-
compressionLevel
public short compressionLevel()
- Returns:
- the value of the
compressionLevelfield.
-
favorDecSpeed
public byte favorDecSpeed()
favor decompression speed if this flag set, otherwise, favor compression ratio
-
dirty
public byte dirty()
stream has to be fully reset if this flag is set
-
dictCtx
public LZ4HCCCtxInternal dictCtx()
- Returns:
- a
LZ4HCCCtxInternalview of the struct pointed to by thedictCtxfield.
-
create
public static LZ4HCCCtxInternal create(long address)
Returns a newLZ4HCCCtxInternalinstance for the specified memory address.
-
createSafe
@Nullable public static LZ4HCCCtxInternal createSafe(long address)
-
create
public static LZ4HCCCtxInternal.Buffer create(long address, int capacity)
Create aLZ4HCCCtxInternal.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static LZ4HCCCtxInternal.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.
-
nchainTable
public static java.nio.ShortBuffer nchainTable(long struct)
Unsafe version ofchainTable().
-
nchainTable
public static short nchainTable(long struct, int index)Unsafe version ofchainTable.
-
nend
public static java.nio.ByteBuffer nend(long struct, int capacity)Unsafe version ofend.
-
nbase
public static java.nio.ByteBuffer nbase(long struct, int capacity)Unsafe version ofbase.
-
ndictBase
public static java.nio.ByteBuffer ndictBase(long struct, int capacity)Unsafe version ofdictBase.
-
ndictLimit
public static int ndictLimit(long struct)
Unsafe version ofdictLimit().
-
nlowLimit
public static int nlowLimit(long struct)
Unsafe version oflowLimit().
-
nnextToUpdate
public static int nnextToUpdate(long struct)
Unsafe version ofnextToUpdate().
-
ncompressionLevel
public static short ncompressionLevel(long struct)
Unsafe version ofcompressionLevel().
-
nfavorDecSpeed
public static byte nfavorDecSpeed(long struct)
Unsafe version offavorDecSpeed().
-
ndirty
public static byte ndirty(long struct)
Unsafe version ofdirty().
-
ndictCtx
public static LZ4HCCCtxInternal ndictCtx(long struct)
Unsafe version ofdictCtx().
-
-