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.StructLayout
union LZ4_stream_t { void * table[LZ4_STREAMSIZE_VOIDP];struct LZ4_stream_t_internalinternal_donotuse; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLZ4Stream.BufferAn array ofLZ4Streamstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intINTERNAL_DONOTUSEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTABLEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description LZ4Stream(java.nio.ByteBuffer container)Creates aLZ4Streaminstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LZ4Streamcreate(long address)Returns a newLZ4Streaminstance for the specified memory address.static LZ4Stream.Buffercreate(long address, int capacity)Create aLZ4Stream.Bufferinstance at the specified memory.static LZ4StreamcreateSafe(long address)static LZ4Stream.BuffercreateSafe(long address, int capacity)LZ4StreamInternalinternal_donotuse()static LZ4StreamInternalninternal_donotuse(long struct)Unsafe version ofinternal_donotuse().static org.lwjgl.PointerBufferntable(long struct)Unsafe version oftable().static longntable(long struct, int index)Unsafe version oftable.intsizeof()org.lwjgl.PointerBuffertable()longtable(int index)
-
-
-
Constructor Detail
-
LZ4Stream
public LZ4Stream(java.nio.ByteBuffer container)
Creates aLZ4Streaminstance 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
-
table
public org.lwjgl.PointerBuffer table()
- Returns:
- a
PointerBufferview of thetablefield.
-
table
public long table(int index)
- Returns:
- the value at the specified index of the
tablefield.
-
internal_donotuse
public LZ4StreamInternal internal_donotuse()
- Returns:
- a
LZ4StreamInternalview of theinternal_donotusefield.
-
create
public static LZ4Stream create(long address)
Returns a newLZ4Streaminstance 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.Bufferinstance 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 org.lwjgl.PointerBuffer 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().
-
-