Package org.lwjgl.util.lz4
Class LZ4StreamDecodeInternal
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.lz4.LZ4StreamDecodeInternal
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class LZ4StreamDecodeInternal extends org.lwjgl.system.Struct
Layout
struct LZ4_streamDecode_t_internal { uint8_t const * externalDict; size_t extDictSize; uint8_t const * prefixEnd; size_t prefixSize; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LZ4StreamDecodeInternal.Buffer
An array ofLZ4StreamDecodeInternal
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
EXTDICTSIZE
EXTERNALDICT
PREFIXEND
PREFIXSIZEThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description LZ4StreamDecodeInternal(java.nio.ByteBuffer container)
Creates aLZ4StreamDecodeInternal
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 LZ4StreamDecodeInternal
create(long address)
Returns a newLZ4StreamDecodeInternal
instance for the specified memory address.static LZ4StreamDecodeInternal.Buffer
create(long address, int capacity)
Create aLZ4StreamDecodeInternal.Buffer
instance at the specified memory.static LZ4StreamDecodeInternal
createSafe(long address)
static LZ4StreamDecodeInternal.Buffer
createSafe(long address, int capacity)
long
extDictSize()
Returns the value of theextDictSize
field.java.nio.ByteBuffer
externalDict(int capacity)
Returns aByteBuffer
view of the data pointed to by theexternalDict
field.static long
nextDictSize(long struct)
Unsafe version ofextDictSize()
.static java.nio.ByteBuffer
nexternalDict(long struct, int capacity)
Unsafe version ofexternalDict
.static java.nio.ByteBuffer
nprefixEnd(long struct, int capacity)
Unsafe version ofprefixEnd
.static long
nprefixSize(long struct)
Unsafe version ofprefixSize()
.java.nio.ByteBuffer
prefixEnd(int capacity)
Returns aByteBuffer
view of the data pointed to by theprefixEnd
field.long
prefixSize()
Returns the value of theprefixSize
field.int
sizeof()
-
-
-
Constructor Detail
-
LZ4StreamDecodeInternal
public LZ4StreamDecodeInternal(java.nio.ByteBuffer container)
Creates aLZ4StreamDecodeInternal
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
-
externalDict
public java.nio.ByteBuffer externalDict(int capacity)
Returns aByteBuffer
view of the data pointed to by theexternalDict
field.- Parameters:
capacity
- the number of elements in the returned buffer
-
extDictSize
public long extDictSize()
Returns the value of theextDictSize
field.
-
prefixEnd
public java.nio.ByteBuffer prefixEnd(int capacity)
Returns aByteBuffer
view of the data pointed to by theprefixEnd
field.- Parameters:
capacity
- the number of elements in the returned buffer
-
prefixSize
public long prefixSize()
Returns the value of theprefixSize
field.
-
create
public static LZ4StreamDecodeInternal create(long address)
Returns a newLZ4StreamDecodeInternal
instance for the specified memory address.
-
createSafe
@Nullable public static LZ4StreamDecodeInternal createSafe(long address)
-
create
public static LZ4StreamDecodeInternal.Buffer create(long address, int capacity)
Create aLZ4StreamDecodeInternal.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static LZ4StreamDecodeInternal.Buffer createSafe(long address, int capacity)
-
nexternalDict
public static java.nio.ByteBuffer nexternalDict(long struct, int capacity)
Unsafe version ofexternalDict
.
-
nextDictSize
public static long nextDictSize(long struct)
Unsafe version ofextDictSize()
.
-
nprefixEnd
public static java.nio.ByteBuffer nprefixEnd(long struct, int capacity)
Unsafe version ofprefixEnd
.
-
nprefixSize
public static long nprefixSize(long struct)
Unsafe version ofprefixSize()
.
-
-