public class ZSTDSequence
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
matchPos – match pos in dstoffset –
if seqDef.offset > 3, then this is seqDef.offset - 3. If seqDef.offset < 3, then this is the corresponding repeat offset. But
if seqDef.offset < 3 and litLength == 0, this is the repeat offset before the corresponding repeat offset. And if
seqDef.offset == 3 and litLength == 0, this is the most recent repeat offset - 1.litLength – literal lengthmatchLength – match lengthrep –
0 when seq not rep and seqDef.offset otherwise when litLength == 0 this will be <= 4,otherwise <= 3
like normal.
struct ZSTD_Sequence {
unsigned int matchPos;
unsigned int offset;
unsigned int litLength;
unsigned int matchLength;
unsigned int rep;
}| Modifier and Type | Class and Description |
|---|---|
static class |
ZSTDSequence.Buffer
An array of
ZSTDSequence structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
LITLENGTH
The struct member offsets.
|
static int |
MATCHLENGTH
The struct member offsets.
|
static int |
MATCHPOS
The struct member offsets.
|
static int |
OFFSET
The struct member offsets.
|
static int |
REP
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
ZSTDSequence(java.nio.ByteBuffer container)
Creates a
ZSTDSequence instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static ZSTDSequence |
calloc()
Returns a new
ZSTDSequence instance allocated with memCalloc. |
static ZSTDSequence.Buffer |
calloc(int capacity)
Returns a new
ZSTDSequence.Buffer instance allocated with memCalloc. |
static ZSTDSequence |
callocStack()
Returns a new
ZSTDSequence instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZSTDSequence.Buffer |
callocStack(int capacity)
Returns a new
ZSTDSequence.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZSTDSequence.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDSequence.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ZSTDSequence |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDSequence instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ZSTDSequence |
create()
Returns a new
ZSTDSequence instance allocated with BufferUtils. |
static ZSTDSequence.Buffer |
create(int capacity)
Returns a new
ZSTDSequence.Buffer instance allocated with BufferUtils. |
static ZSTDSequence |
create(long address)
Returns a new
ZSTDSequence instance for the specified memory address. |
static ZSTDSequence.Buffer |
create(long address,
int capacity)
Create a
ZSTDSequence.Buffer instance at the specified memory. |
static ZSTDSequence |
createSafe(long address)
|
static ZSTDSequence.Buffer |
createSafe(long address,
int capacity)
|
int |
litLength()
Returns the value of the
litLength field. |
static ZSTDSequence |
malloc()
Returns a new
ZSTDSequence instance allocated with memAlloc. |
static ZSTDSequence.Buffer |
malloc(int capacity)
Returns a new
ZSTDSequence.Buffer instance allocated with memAlloc. |
static ZSTDSequence |
mallocStack()
Returns a new
ZSTDSequence instance allocated on the thread-local MemoryStack. |
static ZSTDSequence.Buffer |
mallocStack(int capacity)
Returns a new
ZSTDSequence.Buffer instance allocated on the thread-local MemoryStack. |
static ZSTDSequence.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDSequence.Buffer instance allocated on the specified MemoryStack. |
static ZSTDSequence |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDSequence instance allocated on the specified MemoryStack. |
int |
matchLength()
Returns the value of the
matchLength field. |
int |
matchPos()
Returns the value of the
matchPos field. |
static int |
nlitLength(long struct)
Unsafe version of
litLength(). |
static int |
nmatchLength(long struct)
Unsafe version of
matchLength(). |
static int |
nmatchPos(long struct)
Unsafe version of
matchPos(). |
static int |
noffset(long struct)
Unsafe version of
offset(). |
static int |
nrep(long struct)
Unsafe version of
rep(). |
int |
offset()
Returns the value of the
offset field. |
int |
rep()
Returns the value of the
rep field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int MATCHPOS
public static final int OFFSET
public static final int LITLENGTH
public static final int MATCHLENGTH
public static final int REP
public ZSTDSequence(java.nio.ByteBuffer container)
ZSTDSequence instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int matchPos()
matchPos field.public int offset()
offset field.public int litLength()
litLength field.public int matchLength()
matchLength field.public int rep()
rep field.public static ZSTDSequence malloc()
ZSTDSequence instance allocated with memAlloc. The instance must be explicitly freed.public static ZSTDSequence calloc()
ZSTDSequence instance allocated with memCalloc. The instance must be explicitly freed.public static ZSTDSequence create()
ZSTDSequence instance allocated with BufferUtils.public static ZSTDSequence create(long address)
ZSTDSequence instance for the specified memory address.@Nullable public static ZSTDSequence createSafe(long address)
public static ZSTDSequence.Buffer malloc(int capacity)
ZSTDSequence.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZSTDSequence.Buffer calloc(int capacity)
ZSTDSequence.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZSTDSequence.Buffer create(int capacity)
ZSTDSequence.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static ZSTDSequence.Buffer create(long address, int capacity)
ZSTDSequence.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static ZSTDSequence.Buffer createSafe(long address, int capacity)
public static ZSTDSequence mallocStack()
ZSTDSequence instance allocated on the thread-local MemoryStack.public static ZSTDSequence callocStack()
ZSTDSequence instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static ZSTDSequence mallocStack(org.lwjgl.system.MemoryStack stack)
ZSTDSequence instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static ZSTDSequence callocStack(org.lwjgl.system.MemoryStack stack)
ZSTDSequence instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static ZSTDSequence.Buffer mallocStack(int capacity)
ZSTDSequence.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static ZSTDSequence.Buffer callocStack(int capacity)
ZSTDSequence.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static ZSTDSequence.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZSTDSequence.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static ZSTDSequence.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZSTDSequence.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nmatchPos(long struct)
matchPos().public static int noffset(long struct)
offset().public static int nlitLength(long struct)
litLength().public static int nmatchLength(long struct)
matchLength().public static int nrep(long struct)
rep().Copyright LWJGL. All Rights Reserved. License terms.