Package org.lwjgl.util.lz4
Class LZ4HCCCtxInternal.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<LZ4HCCCtxInternal,LZ4HCCCtxInternal.Buffer>
-
- org.lwjgl.util.lz4.LZ4HCCCtxInternal.Buffer
-
- All Implemented Interfaces:
java.lang.Iterable<LZ4HCCCtxInternal>,org.lwjgl.system.Pointer
- Enclosing class:
- LZ4HCCCtxInternal
public static class LZ4HCCCtxInternal.Buffer extends org.lwjgl.system.StructBuffer<LZ4HCCCtxInternal,LZ4HCCCtxInternal.Buffer>
An array ofLZ4HCCCtxInternalstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBufferbase(int capacity)java.nio.ShortBufferchainTable()shortchainTable(int index)shortcompressionLevel()java.nio.ByteBufferdictBase(int capacity)LZ4HCCCtxInternaldictCtx()intdictLimit()bytedirty()java.nio.ByteBufferend(int capacity)bytefavorDecSpeed()java.nio.IntBufferhashTable()inthashTable(int index)intlowLimit()intnextToUpdate()
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newLZ4HCCCtxInternal.Bufferinstance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided byLZ4HCCCtxInternal.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
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:
- a
ByteBufferview of the data pointed to by theLZ4HCCCtxInternal.end(int)field.
-
base
public java.nio.ByteBuffer base(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
ByteBufferview of the data pointed to by theLZ4HCCCtxInternal.base(int)field.
-
dictBase
public java.nio.ByteBuffer dictBase(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
ByteBufferview of the data pointed to by theLZ4HCCCtxInternal.dictBase(int)field.
-
dictLimit
public int dictLimit()
- Returns:
- the value of the
LZ4HCCCtxInternal.dictLimit()field.
-
lowLimit
public int lowLimit()
- Returns:
- the value of the
LZ4HCCCtxInternal.lowLimit()field.
-
nextToUpdate
public int nextToUpdate()
- Returns:
- the value of the
LZ4HCCCtxInternal.nextToUpdate()field.
-
compressionLevel
public short compressionLevel()
- Returns:
- the value of the
compressionLevelfield.
-
favorDecSpeed
public byte favorDecSpeed()
- Returns:
- the value of the
LZ4HCCCtxInternal.favorDecSpeed()field.
-
dirty
public byte dirty()
- Returns:
- the value of the
LZ4HCCCtxInternal.dirty()field.
-
dictCtx
public LZ4HCCCtxInternal dictCtx()
- Returns:
- a
LZ4HCCCtxInternalview of the struct pointed to by thedictCtxfield.
-
-