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.Struct
Layout
struct LZ4_stream_t_internal { uint32_t hashTable[LZ4_HASH_SIZE_U32]; uint32_t currentOffset; uint16_t dirty; uint16_t tableType; uint8_t const * dictionary;
LZ4_stream_t_internal
* const dictCtx; uint32_t dictSize; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LZ4StreamInternal.Buffer
An array ofLZ4StreamInternal
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
CURRENTOFFSET
DICTCTX
DICTIONARY
DICTSIZE
DIRTY
HASHTABLEThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
TABLETYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description LZ4StreamInternal(java.nio.ByteBuffer container)
Creates aLZ4StreamInternal
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LZ4StreamInternal
create(long address)
Returns a newLZ4StreamInternal
instance for the specified memory address.static LZ4StreamInternal.Buffer
create(long address, int capacity)
Create aLZ4StreamInternal.Buffer
instance at the specified memory.static LZ4StreamInternal
createSafe(long address)
static LZ4StreamInternal.Buffer
createSafe(long address, int capacity)
int
currentOffset()
Returns the value of thecurrentOffset
field.LZ4StreamInternal
dictCtx()
Returns aLZ4StreamInternal
view of the struct pointed to by thedictCtx
field.java.nio.ByteBuffer
dictionary(int capacity)
Returns aByteBuffer
view of the data pointed to by thedictionary
field.int
dictSize()
Returns the value of thedictSize
field.short
dirty()
Returns the value of thedirty
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.static int
ncurrentOffset(long struct)
Unsafe version ofcurrentOffset()
.static LZ4StreamInternal
ndictCtx(long struct)
Unsafe version ofdictCtx()
.static java.nio.ByteBuffer
ndictionary(long struct, int capacity)
Unsafe version ofdictionary
.static int
ndictSize(long struct)
Unsafe version ofdictSize()
.static short
ndirty(long struct)
Unsafe version ofdirty()
.static java.nio.IntBuffer
nhashTable(long struct)
Unsafe version ofhashTable()
.static int
nhashTable(long struct, int index)
Unsafe version ofhashTable
.static short
ntableType(long struct)
Unsafe version oftableType()
.int
sizeof()
short
tableType()
Returns the value of thetableType
field.
-
-
-
Constructor Detail
-
LZ4StreamInternal
public LZ4StreamInternal(java.nio.ByteBuffer container)
Creates aLZ4StreamInternal
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.
-
currentOffset
public int currentOffset()
Returns the value of thecurrentOffset
field.
-
dirty
public short dirty()
Returns the value of thedirty
field.
-
tableType
public short tableType()
Returns the value of thetableType
field.
-
dictionary
public java.nio.ByteBuffer dictionary(int capacity)
Returns aByteBuffer
view of the data pointed to by thedictionary
field.- Parameters:
capacity
- the number of elements in the returned buffer
-
dictCtx
public LZ4StreamInternal dictCtx()
Returns aLZ4StreamInternal
view of the struct pointed to by thedictCtx
field.
-
dictSize
public int dictSize()
Returns the value of thedictSize
field.
-
create
public static LZ4StreamInternal create(long address)
Returns a newLZ4StreamInternal
instance 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.Buffer
instance 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()
.
-
ndirty
public static short ndirty(long struct)
Unsafe version ofdirty()
.
-
ntableType
public static short 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()
.
-
-