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.Struct
Member documentation
end
– next block here to continue on current prefixbase
– All index relative to this positiondictBase
– alternate base forextDict
dictLimit
– below that point, needextDict
lowLimit
– below that point, no moredict
nextToUpdate
– index from which to continue dictionary updatefavorDecSpeed
– favor decompression speed if this flag set, otherwise, favor compression ratiodirty
– stream has to be fully reset if this flag is set
Layout
struct LZ4HC_CCtx_internal { uint32_t hashTable[LZ4HC_HASHTABLESIZE]; uint16_t chainTable[LZ4HC_MAXD]; uint8_t const * end; uint8_t const * base; uint8_t const * dictBase; uint32_t dictLimit; uint32_t lowLimit; uint32_t nextToUpdate; short compressionLevel; int8_t favorDecSpeed; int8_t dirty;
LZ4HC_CCtx_internal
* const dictCtx; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LZ4HCCCtxInternal.Buffer
An array ofLZ4HCCCtxInternal
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
BASE
CHAINTABLE
COMPRESSIONLEVEL
DICTBASE
DICTCTX
DICTLIMIT
DIRTY
END
FAVORDECSPEED
HASHTABLE
LOWLIMIT
NEXTTOUPDATEThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description LZ4HCCCtxInternal(java.nio.ByteBuffer container)
Creates aLZ4HCCCtxInternal
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
base(int capacity)
Returns aByteBuffer
view of the data pointed to by thebase
field.java.nio.ShortBuffer
chainTable()
Returns aShortBuffer
view of thechainTable
field.short
chainTable(int index)
Returns the value at the specified index of thechainTable
field.short
compressionLevel()
Returns the value of thecompressionLevel
field.static LZ4HCCCtxInternal
create(long address)
Returns a newLZ4HCCCtxInternal
instance for the specified memory address.static LZ4HCCCtxInternal.Buffer
create(long address, int capacity)
Create aLZ4HCCCtxInternal.Buffer
instance at the specified memory.static LZ4HCCCtxInternal
createSafe(long address)
static LZ4HCCCtxInternal.Buffer
createSafe(long address, int capacity)
java.nio.ByteBuffer
dictBase(int capacity)
Returns aByteBuffer
view of the data pointed to by thedictBase
field.LZ4HCCCtxInternal
dictCtx()
Returns aLZ4HCCCtxInternal
view of the struct pointed to by thedictCtx
field.int
dictLimit()
Returns the value of thedictLimit
field.byte
dirty()
Returns the value of thedirty
field.java.nio.ByteBuffer
end(int capacity)
Returns aByteBuffer
view of the data pointed to by theend
field.byte
favorDecSpeed()
Returns the value of thefavorDecSpeed
field.java.nio.IntBuffer
hashTable()
Returns aIntBuffer
view of thehashTable
field.int
hashTable(int index)
Returns the value at the specified index of thehashTable
field.int
lowLimit()
Returns the value of thelowLimit
field.static java.nio.ByteBuffer
nbase(long struct, int capacity)
Unsafe version ofbase
.static java.nio.ShortBuffer
nchainTable(long struct)
Unsafe version ofchainTable()
.static short
nchainTable(long struct, int index)
Unsafe version ofchainTable
.static short
ncompressionLevel(long struct)
Unsafe version ofcompressionLevel()
.static java.nio.ByteBuffer
ndictBase(long struct, int capacity)
Unsafe version ofdictBase
.static LZ4HCCCtxInternal
ndictCtx(long struct)
Unsafe version ofdictCtx()
.static int
ndictLimit(long struct)
Unsafe version ofdictLimit()
.static byte
ndirty(long struct)
Unsafe version ofdirty()
.static java.nio.ByteBuffer
nend(long struct, int capacity)
Unsafe version ofend
.int
nextToUpdate()
Returns the value of thenextToUpdate
field.static byte
nfavorDecSpeed(long struct)
Unsafe version offavorDecSpeed()
.static java.nio.IntBuffer
nhashTable(long struct)
Unsafe version ofhashTable()
.static int
nhashTable(long struct, int index)
Unsafe version ofhashTable
.static int
nlowLimit(long struct)
Unsafe version oflowLimit()
.static int
nnextToUpdate(long struct)
Unsafe version ofnextToUpdate()
.int
sizeof()
-
-
-
Constructor Detail
-
LZ4HCCCtxInternal
public LZ4HCCCtxInternal(java.nio.ByteBuffer container)
Creates aLZ4HCCCtxInternal
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
hashTable
public java.nio.IntBuffer hashTable()
Returns aIntBuffer
view of thehashTable
field.
-
hashTable
public int hashTable(int index)
Returns the value at the specified index of thehashTable
field.
-
chainTable
public java.nio.ShortBuffer chainTable()
Returns aShortBuffer
view of thechainTable
field.
-
chainTable
public short chainTable(int index)
Returns the value at the specified index of thechainTable
field.
-
end
public java.nio.ByteBuffer end(int capacity)
Returns aByteBuffer
view of the data pointed to by theend
field.- Parameters:
capacity
- the number of elements in the returned buffer
-
base
public java.nio.ByteBuffer base(int capacity)
Returns aByteBuffer
view of the data pointed to by thebase
field.- Parameters:
capacity
- the number of elements in the returned buffer
-
dictBase
public java.nio.ByteBuffer dictBase(int capacity)
Returns aByteBuffer
view of the data pointed to by thedictBase
field.- Parameters:
capacity
- the number of elements in the returned buffer
-
dictLimit
public int dictLimit()
Returns the value of thedictLimit
field.
-
lowLimit
public int lowLimit()
Returns the value of thelowLimit
field.
-
nextToUpdate
public int nextToUpdate()
Returns the value of thenextToUpdate
field.
-
compressionLevel
public short compressionLevel()
Returns the value of thecompressionLevel
field.
-
favorDecSpeed
public byte favorDecSpeed()
Returns the value of thefavorDecSpeed
field.
-
dirty
public byte dirty()
Returns the value of thedirty
field.
-
dictCtx
public LZ4HCCCtxInternal dictCtx()
Returns aLZ4HCCCtxInternal
view of the struct pointed to by thedictCtx
field.
-
create
public static LZ4HCCCtxInternal create(long address)
Returns a newLZ4HCCCtxInternal
instance 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.Buffer
instance 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()
.
-
-