Package org.lwjgl.util.lz4
Class LZ4Stream
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.lz4.LZ4Stream
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class LZ4Stream extends org.lwjgl.system.Struct
Layout
union LZ4_stream_t { unsigned long long table[LZ4_STREAMSIZE_U64];
struct LZ4_stream_t_internal
internal_donotuse; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LZ4Stream.Buffer
An array ofLZ4Stream
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
INTERNAL_DONOTUSE
The struct member offsets.static int
SIZEOF
The struct size in bytes.static int
TABLE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description LZ4Stream(java.nio.ByteBuffer container)
Creates aLZ4Stream
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 LZ4Stream
create(long address)
Returns a newLZ4Stream
instance for the specified memory address.static LZ4Stream.Buffer
create(long address, int capacity)
Create aLZ4Stream.Buffer
instance at the specified memory.static LZ4Stream
createSafe(long address)
static LZ4Stream.Buffer
createSafe(long address, int capacity)
LZ4StreamInternal
internal_donotuse()
Returns aLZ4StreamInternal
view of theinternal_donotuse
field.static LZ4StreamInternal
ninternal_donotuse(long struct)
Unsafe version ofinternal_donotuse()
.static java.nio.LongBuffer
ntable(long struct)
Unsafe version oftable()
.static long
ntable(long struct, int index)
Unsafe version oftable
.int
sizeof()
java.nio.LongBuffer
table()
Returns aLongBuffer
view of thetable
field.long
table(int index)
Returns the value at the specified index of thetable
field.
-
-
-
Constructor Detail
-
LZ4Stream
public LZ4Stream(java.nio.ByteBuffer container)
Creates aLZ4Stream
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
-
table
public java.nio.LongBuffer table()
Returns aLongBuffer
view of thetable
field.
-
table
public long table(int index)
Returns the value at the specified index of thetable
field.
-
internal_donotuse
public LZ4StreamInternal internal_donotuse()
Returns aLZ4StreamInternal
view of theinternal_donotuse
field.
-
create
public static LZ4Stream create(long address)
Returns a newLZ4Stream
instance for the specified memory address.
-
createSafe
@Nullable public static LZ4Stream createSafe(long address)
-
create
public static LZ4Stream.Buffer create(long address, int capacity)
Create aLZ4Stream.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static LZ4Stream.Buffer createSafe(long address, int capacity)
-
ntable
public static java.nio.LongBuffer ntable(long struct)
Unsafe version oftable()
.
-
ntable
public static long ntable(long struct, int index)
Unsafe version oftable
.
-
ninternal_donotuse
public static LZ4StreamInternal ninternal_donotuse(long struct)
Unsafe version ofinternal_donotuse()
.
-
-