Package org.lwjgl.util.zstd
Class ZSTDSequence
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct ZSTD_Sequence {
unsigned int offset;
unsigned int litLength;
unsigned int matchLength;
unsigned int rep;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionZSTDSequence
(ByteBuffer container) Creates aZSTDSequence
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic ZSTDSequence
calloc()
Returns a newZSTDSequence
instance allocated withmemCalloc
.static ZSTDSequence.Buffer
calloc
(int capacity) Returns a newZSTDSequence.Buffer
instance allocated withmemCalloc
.static ZSTDSequence.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newZSTDSequence.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ZSTDSequence
calloc
(MemoryStack stack) Returns a newZSTDSequence
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ZSTDSequence
create()
Returns a newZSTDSequence
instance allocated withBufferUtils
.static ZSTDSequence.Buffer
create
(int capacity) Returns a newZSTDSequence.Buffer
instance allocated withBufferUtils
.static ZSTDSequence
create
(long address) Returns a newZSTDSequence
instance for the specified memory address.static ZSTDSequence.Buffer
create
(long address, int capacity) Create aZSTDSequence.Buffer
instance at the specified memory.static @Nullable ZSTDSequence
createSafe
(long address) static @Nullable ZSTDSequence.Buffer
createSafe
(long address, int capacity) int
static ZSTDSequence
malloc()
Returns a newZSTDSequence
instance allocated withmemAlloc
.static ZSTDSequence.Buffer
malloc
(int capacity) Returns a newZSTDSequence.Buffer
instance allocated withmemAlloc
.static ZSTDSequence.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newZSTDSequence.Buffer
instance allocated on the specifiedMemoryStack
.static ZSTDSequence
malloc
(MemoryStack stack) Returns a newZSTDSequence
instance allocated on the specifiedMemoryStack
.int
static int
nlitLength
(long struct) Unsafe version oflitLength()
.static int
nmatchLength
(long struct) Unsafe version ofmatchLength()
.static int
noffset
(long struct) Unsafe version ofoffset()
.static int
nrep
(long struct) Unsafe version ofrep()
.int
offset()
int
rep()
int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
OFFSET
public static final int OFFSETThe struct member offsets. -
LITLENGTH
public static final int LITLENGTHThe struct member offsets. -
MATCHLENGTH
public static final int MATCHLENGTHThe struct member offsets. -
REP
public static final int REPThe struct member offsets.
-
-
Constructor Details
-
ZSTDSequence
Creates aZSTDSequence
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<ZSTDSequence>
-
offset
public int offset()- Returns:
- the value of the
offset
field.
-
litLength
public int litLength()- Returns:
- the value of the
litLength
field.
-
matchLength
public int matchLength()- Returns:
- the value of the
matchLength
field.
-
rep
public int rep()- Returns:
- the value of the
rep
field.
-
malloc
Returns a newZSTDSequence
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newZSTDSequence
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newZSTDSequence
instance allocated withBufferUtils
. -
create
Returns a newZSTDSequence
instance for the specified memory address. -
createSafe
-
malloc
Returns a newZSTDSequence.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newZSTDSequence.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newZSTDSequence.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aZSTDSequence.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newZSTDSequence
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newZSTDSequence
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newZSTDSequence.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newZSTDSequence.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
noffset
public static int noffset(long struct) Unsafe version ofoffset()
. -
nlitLength
public static int nlitLength(long struct) Unsafe version oflitLength()
. -
nmatchLength
public static int nmatchLength(long struct) Unsafe version ofmatchLength()
. -
nrep
public static int nrep(long struct) Unsafe version ofrep()
.
-