Package org.lwjgl.util.zstd
Class ZSTDFrameHeader
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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;
unsigned _reserved1;
unsigned _reserved2;
}-
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 member offsets.static final intThe struct member offsets.static 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 member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionZSTDFrameHeader(ByteBuffer container) Creates aZSTDFrameHeaderinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintstatic ZSTDFrameHeadercalloc()Returns a newZSTDFrameHeaderinstance allocated withmemCalloc.static ZSTDFrameHeader.Buffercalloc(int capacity) Returns a newZSTDFrameHeader.Bufferinstance allocated withmemCalloc.static ZSTDFrameHeader.Buffercalloc(int capacity, MemoryStack stack) Returns a newZSTDFrameHeader.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZSTDFrameHeadercalloc(MemoryStack stack) Returns a newZSTDFrameHeaderinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intstatic ZSTDFrameHeadercreate()Returns a newZSTDFrameHeaderinstance allocated withBufferUtils.static ZSTDFrameHeader.Buffercreate(int capacity) Returns a newZSTDFrameHeader.Bufferinstance allocated withBufferUtils.static ZSTDFrameHeadercreate(long address) Returns a newZSTDFrameHeaderinstance for the specified memory address.static ZSTDFrameHeader.Buffercreate(long address, int capacity) Create aZSTDFrameHeader.Bufferinstance at the specified memory.static @Nullable ZSTDFrameHeadercreateSafe(long address) static @Nullable ZSTDFrameHeader.BuffercreateSafe(long address, int capacity) intdictID()longintintstatic ZSTDFrameHeadermalloc()Returns a newZSTDFrameHeaderinstance allocated withmemAlloc.static ZSTDFrameHeader.Buffermalloc(int capacity) Returns a newZSTDFrameHeader.Bufferinstance allocated withmemAlloc.static ZSTDFrameHeader.Buffermalloc(int capacity, MemoryStack stack) Returns a newZSTDFrameHeader.Bufferinstance allocated on the specifiedMemoryStack.static ZSTDFrameHeadermalloc(MemoryStack stack) Returns a newZSTDFrameHeaderinstance allocated on the specifiedMemoryStack.static intn_reserved1(long struct) static intn_reserved2(long struct) static intnblockSizeMax(long struct) Unsafe version ofblockSizeMax().static intnchecksumFlag(long struct) Unsafe version ofchecksumFlag().static intndictID(long struct) Unsafe version ofdictID().static longnframeContentSize(long struct) Unsafe version offrameContentSize().static intnframeType(long struct) Unsafe version offrameType().static intnheaderSize(long struct) Unsafe version ofheaderSize().static longnwindowSize(long struct) Unsafe version ofwindowSize().intsizeof()Returnssizeof(struct).longMethods 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. -
FRAMECONTENTSIZE
public static final int FRAMECONTENTSIZEThe struct member offsets. -
WINDOWSIZE
public static final int WINDOWSIZEThe struct member offsets. -
BLOCKSIZEMAX
public static final int BLOCKSIZEMAXThe struct member offsets. -
FRAMETYPE
public static final int FRAMETYPEThe struct member offsets. -
HEADERSIZE
public static final int HEADERSIZEThe struct member offsets. -
DICTID
public static final int DICTIDThe struct member offsets. -
CHECKSUMFLAG
public static final int CHECKSUMFLAGThe struct member offsets. -
_RESERVED1
public static final int _RESERVED1The struct member offsets. -
_RESERVED2
public static final int _RESERVED2The struct member offsets.
-
-
Constructor Details
-
ZSTDFrameHeader
Creates aZSTDFrameHeaderinstance 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<ZSTDFrameHeader>
-
frameContentSize
public long frameContentSize()- Returns:
- the value of the
frameContentSizefield.
-
windowSize
public long windowSize()- Returns:
- the value of the
windowSizefield.
-
blockSizeMax
public int blockSizeMax()- Returns:
- the value of the
blockSizeMaxfield.
-
frameType
public int frameType()- Returns:
- the value of the
frameTypefield.
-
headerSize
public int headerSize()- Returns:
- the value of the
headerSizefield.
-
dictID
public int dictID()- Returns:
- the value of the
dictIDfield.
-
checksumFlag
public int checksumFlag()- Returns:
- the value of the
checksumFlagfield.
-
malloc
Returns a newZSTDFrameHeaderinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newZSTDFrameHeaderinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newZSTDFrameHeaderinstance allocated withBufferUtils. -
create
Returns a newZSTDFrameHeaderinstance for the specified memory address. -
createSafe
-
malloc
Returns a newZSTDFrameHeader.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newZSTDFrameHeader.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newZSTDFrameHeader.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aZSTDFrameHeader.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newZSTDFrameHeaderinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newZSTDFrameHeaderinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newZSTDFrameHeader.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newZSTDFrameHeader.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nframeContentSize
public static long nframeContentSize(long struct) Unsafe version offrameContentSize(). -
nwindowSize
public static long nwindowSize(long struct) Unsafe version ofwindowSize(). -
nblockSizeMax
public static int nblockSizeMax(long struct) Unsafe version ofblockSizeMax(). -
nframeType
public static int nframeType(long struct) Unsafe version offrameType(). -
nheaderSize
public static int nheaderSize(long struct) Unsafe version ofheaderSize(). -
ndictID
public static int ndictID(long struct) Unsafe version ofdictID(). -
nchecksumFlag
public static int nchecksumFlag(long struct) Unsafe version ofchecksumFlag(). -
n_reserved1
public static int n_reserved1(long struct) -
n_reserved2
public static int n_reserved2(long struct)
-