public class ZSTDFrameHeader
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
frameContentSize – if == CONTENTSIZE_UNKNOWN, it means this field is not available. 0 means "empty"windowSize – can be very large, up to ≤ frameContentSizeframeType – if == skippableFrame, frameContentSize is the size of skippable content
struct ZSTD_frameHeader {
unsigned long long frameContentSize;
unsigned long long windowSize;
unsigned int blockSizeMax;
ZSTD_frameType_e frameType;
unsigned int headerSize;
unsigned int dictID;
unsigned int checksumFlag;
}| Modifier and Type | Class and Description |
|---|---|
static class |
ZSTDFrameHeader.Buffer
An array of
ZSTDFrameHeader structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BLOCKSIZEMAX
The struct member offsets.
|
static int |
CHECKSUMFLAG
The struct member offsets.
|
static int |
DICTID
The struct member offsets.
|
static int |
FRAMECONTENTSIZE
The struct member offsets.
|
static int |
FRAMETYPE
The struct member offsets.
|
static int |
HEADERSIZE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
WINDOWSIZE
The struct member offsets.
|
| Constructor and Description |
|---|
ZSTDFrameHeader(java.nio.ByteBuffer container)
Creates a
ZSTDFrameHeader instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
blockSizeMax()
Returns the value of the
blockSizeMax field. |
static ZSTDFrameHeader |
calloc()
Returns a new
ZSTDFrameHeader instance allocated with memCalloc. |
static ZSTDFrameHeader.Buffer |
calloc(int capacity)
Returns a new
ZSTDFrameHeader.Buffer instance allocated with memCalloc. |
static ZSTDFrameHeader |
callocStack()
Returns a new
ZSTDFrameHeader instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZSTDFrameHeader.Buffer |
callocStack(int capacity)
Returns a new
ZSTDFrameHeader.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZSTDFrameHeader.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDFrameHeader.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ZSTDFrameHeader |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDFrameHeader instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
checksumFlag()
Returns the value of the
checksumFlag field. |
static ZSTDFrameHeader |
create()
Returns a new
ZSTDFrameHeader instance allocated with BufferUtils. |
static ZSTDFrameHeader.Buffer |
create(int capacity)
Returns a new
ZSTDFrameHeader.Buffer instance allocated with BufferUtils. |
static ZSTDFrameHeader |
create(long address)
Returns a new
ZSTDFrameHeader instance for the specified memory address. |
static ZSTDFrameHeader.Buffer |
create(long address,
int capacity)
Create a
ZSTDFrameHeader.Buffer instance at the specified memory. |
static ZSTDFrameHeader |
createSafe(long address)
|
static ZSTDFrameHeader.Buffer |
createSafe(long address,
int capacity)
|
int |
dictID()
Returns the value of the
dictID field. |
long |
frameContentSize()
Returns the value of the
frameContentSize field. |
int |
frameType()
Returns the value of the
frameType field. |
int |
headerSize()
Returns the value of the
headerSize field. |
static ZSTDFrameHeader |
malloc()
Returns a new
ZSTDFrameHeader instance allocated with memAlloc. |
static ZSTDFrameHeader.Buffer |
malloc(int capacity)
Returns a new
ZSTDFrameHeader.Buffer instance allocated with memAlloc. |
static ZSTDFrameHeader |
mallocStack()
Returns a new
ZSTDFrameHeader instance allocated on the thread-local MemoryStack. |
static ZSTDFrameHeader.Buffer |
mallocStack(int capacity)
Returns a new
ZSTDFrameHeader.Buffer instance allocated on the thread-local MemoryStack. |
static ZSTDFrameHeader.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDFrameHeader.Buffer instance allocated on the specified MemoryStack. |
static ZSTDFrameHeader |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZSTDFrameHeader instance allocated on the specified MemoryStack. |
static int |
nblockSizeMax(long struct)
Unsafe version of
blockSizeMax(). |
static int |
nchecksumFlag(long struct)
Unsafe version of
checksumFlag(). |
static int |
ndictID(long struct)
Unsafe version of
dictID(). |
static long |
nframeContentSize(long struct)
Unsafe version of
frameContentSize(). |
static int |
nframeType(long struct)
Unsafe version of
frameType(). |
static int |
nheaderSize(long struct)
Unsafe version of
headerSize(). |
static long |
nwindowSize(long struct)
Unsafe version of
windowSize(). |
int |
sizeof() |
long |
windowSize()
Returns the value of the
windowSize field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int FRAMECONTENTSIZE
public static final int WINDOWSIZE
public static final int BLOCKSIZEMAX
public static final int FRAMETYPE
public static final int HEADERSIZE
public static final int DICTID
public static final int CHECKSUMFLAG
public ZSTDFrameHeader(java.nio.ByteBuffer container)
ZSTDFrameHeader 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 long frameContentSize()
frameContentSize field.public long windowSize()
windowSize field.public int blockSizeMax()
blockSizeMax field.public int frameType()
frameType field.public int headerSize()
headerSize field.public int dictID()
dictID field.public int checksumFlag()
checksumFlag field.public static ZSTDFrameHeader malloc()
ZSTDFrameHeader instance allocated with memAlloc. The instance must be explicitly freed.public static ZSTDFrameHeader calloc()
ZSTDFrameHeader instance allocated with memCalloc. The instance must be explicitly freed.public static ZSTDFrameHeader create()
ZSTDFrameHeader instance allocated with BufferUtils.public static ZSTDFrameHeader create(long address)
ZSTDFrameHeader instance for the specified memory address.@Nullable public static ZSTDFrameHeader createSafe(long address)
public static ZSTDFrameHeader.Buffer malloc(int capacity)
ZSTDFrameHeader.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZSTDFrameHeader.Buffer calloc(int capacity)
ZSTDFrameHeader.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZSTDFrameHeader.Buffer create(int capacity)
ZSTDFrameHeader.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static ZSTDFrameHeader.Buffer create(long address, int capacity)
ZSTDFrameHeader.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static ZSTDFrameHeader.Buffer createSafe(long address, int capacity)
public static ZSTDFrameHeader mallocStack()
ZSTDFrameHeader instance allocated on the thread-local MemoryStack.public static ZSTDFrameHeader callocStack()
ZSTDFrameHeader instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static ZSTDFrameHeader mallocStack(org.lwjgl.system.MemoryStack stack)
ZSTDFrameHeader instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static ZSTDFrameHeader callocStack(org.lwjgl.system.MemoryStack stack)
ZSTDFrameHeader instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static ZSTDFrameHeader.Buffer mallocStack(int capacity)
ZSTDFrameHeader.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static ZSTDFrameHeader.Buffer callocStack(int capacity)
ZSTDFrameHeader.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static ZSTDFrameHeader.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZSTDFrameHeader.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static ZSTDFrameHeader.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZSTDFrameHeader.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 long nframeContentSize(long struct)
frameContentSize().public static long nwindowSize(long struct)
windowSize().public static int nblockSizeMax(long struct)
blockSizeMax().public static int nframeType(long struct)
frameType().public static int nheaderSize(long struct)
headerSize().public static int ndictID(long struct)
dictID().public static int nchecksumFlag(long struct)
checksumFlag().Copyright LWJGL. All Rights Reserved. License terms.