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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aZSTDSequenceinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ZSTDSequencecalloc()Returns a newZSTDSequenceinstance allocated withmemCalloc.static ZSTDSequence.Buffercalloc(int capacity) Returns a newZSTDSequence.Bufferinstance allocated withmemCalloc.static ZSTDSequence.Buffercalloc(int capacity, MemoryStack stack) Returns a newZSTDSequence.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZSTDSequencecalloc(MemoryStack stack) Returns a newZSTDSequenceinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZSTDSequencecreate()Returns a newZSTDSequenceinstance allocated withBufferUtils.static ZSTDSequence.Buffercreate(int capacity) Returns a newZSTDSequence.Bufferinstance allocated withBufferUtils.static ZSTDSequencecreate(long address) Returns a newZSTDSequenceinstance for the specified memory address.static ZSTDSequence.Buffercreate(long address, int capacity) Create aZSTDSequence.Bufferinstance at the specified memory.static @Nullable ZSTDSequencecreateSafe(long address) static @Nullable ZSTDSequence.BuffercreateSafe(long address, int capacity) intstatic ZSTDSequencemalloc()Returns a newZSTDSequenceinstance allocated withmemAlloc.static ZSTDSequence.Buffermalloc(int capacity) Returns a newZSTDSequence.Bufferinstance allocated withmemAlloc.static ZSTDSequence.Buffermalloc(int capacity, MemoryStack stack) Returns a newZSTDSequence.Bufferinstance allocated on the specifiedMemoryStack.static ZSTDSequencemalloc(MemoryStack stack) Returns a newZSTDSequenceinstance allocated on the specifiedMemoryStack.intstatic intnlitLength(long struct) Unsafe version oflitLength().static intnmatchLength(long struct) Unsafe version ofmatchLength().static intnoffset(long struct) Unsafe version ofoffset().static intnrep(long struct) Unsafe version ofrep().intoffset()intrep()intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aZSTDSequenceinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<ZSTDSequence>
-
offset
public int offset()- Returns:
- the value of the
offsetfield.
-
litLength
public int litLength()- Returns:
- the value of the
litLengthfield.
-
matchLength
public int matchLength()- Returns:
- the value of the
matchLengthfield.
-
rep
public int rep()- Returns:
- the value of the
repfield.
-
malloc
Returns a newZSTDSequenceinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newZSTDSequenceinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newZSTDSequenceinstance allocated withBufferUtils. -
create
Returns a newZSTDSequenceinstance for the specified memory address. -
createSafe
-
malloc
Returns a newZSTDSequence.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newZSTDSequence.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newZSTDSequence.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aZSTDSequence.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newZSTDSequenceinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newZSTDSequenceinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newZSTDSequence.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newZSTDSequence.Bufferinstance allocated on the specifiedMemoryStackand 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().
-