Package org.lwjgl.util.lz4
Class LZ4FFrameInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct LZ4F_frameInfo_t {
LZ4F_blockSizeID_t blockSizeID;
LZ4F_blockMode_t blockMode;
LZ4F_contentChecksum_t contentChecksumFlag;
LZ4F_frameType_t frameType;
unsigned long long contentSize;
unsigned dictID;
LZ4F_blockChecksum_t blockChecksumFlag;
}
-
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 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
ConstructorsConstructorDescriptionLZ4FFrameInfo
(ByteBuffer container) Creates aLZ4FFrameInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
blockChecksumFlag
(int value) Sets the specified value to theblockChecksumFlag
field.int
blockMode
(int value) Sets the specified value to theblockMode
field.int
blockSizeID
(int value) Sets the specified value to theblockSizeID
field.static LZ4FFrameInfo
calloc()
Returns a newLZ4FFrameInfo
instance allocated withmemCalloc
.static LZ4FFrameInfo.Buffer
calloc
(int capacity) Returns a newLZ4FFrameInfo.Buffer
instance allocated withmemCalloc
.static LZ4FFrameInfo.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newLZ4FFrameInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static LZ4FFrameInfo
calloc
(MemoryStack stack) Returns a newLZ4FFrameInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static LZ4FFrameInfo
Deprecated.static LZ4FFrameInfo.Buffer
callocStack
(int capacity) Deprecated.static LZ4FFrameInfo.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static LZ4FFrameInfo
callocStack
(MemoryStack stack) Deprecated.int
contentChecksumFlag
(int value) Sets the specified value to thecontentChecksumFlag
field.long
contentSize
(long value) Sets the specified value to thecontentSize
field.static LZ4FFrameInfo
create()
Returns a newLZ4FFrameInfo
instance allocated withBufferUtils
.static LZ4FFrameInfo.Buffer
create
(int capacity) Returns a newLZ4FFrameInfo.Buffer
instance allocated withBufferUtils
.static LZ4FFrameInfo
create
(long address) Returns a newLZ4FFrameInfo
instance for the specified memory address.static LZ4FFrameInfo.Buffer
create
(long address, int capacity) Create aLZ4FFrameInfo.Buffer
instance at the specified memory.static @Nullable LZ4FFrameInfo
createSafe
(long address) static @Nullable LZ4FFrameInfo.Buffer
createSafe
(long address, int capacity) int
dictID()
dictID
(int value) Sets the specified value to thedictID
field.int
frameType
(int value) Sets the specified value to theframeType
field.static LZ4FFrameInfo
malloc()
Returns a newLZ4FFrameInfo
instance allocated withmemAlloc
.static LZ4FFrameInfo.Buffer
malloc
(int capacity) Returns a newLZ4FFrameInfo.Buffer
instance allocated withmemAlloc
.static LZ4FFrameInfo.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newLZ4FFrameInfo.Buffer
instance allocated on the specifiedMemoryStack
.static LZ4FFrameInfo
malloc
(MemoryStack stack) Returns a newLZ4FFrameInfo
instance allocated on the specifiedMemoryStack
.static LZ4FFrameInfo
Deprecated.static LZ4FFrameInfo.Buffer
mallocStack
(int capacity) Deprecated.static LZ4FFrameInfo.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static LZ4FFrameInfo
mallocStack
(MemoryStack stack) Deprecated.static int
nblockChecksumFlag
(long struct) Unsafe version ofblockChecksumFlag()
.static void
nblockChecksumFlag
(long struct, int value) Unsafe version ofblockChecksumFlag
.static int
nblockMode
(long struct) Unsafe version ofblockMode()
.static void
nblockMode
(long struct, int value) Unsafe version ofblockMode
.static int
nblockSizeID
(long struct) Unsafe version ofblockSizeID()
.static void
nblockSizeID
(long struct, int value) Unsafe version ofblockSizeID
.static int
ncontentChecksumFlag
(long struct) Unsafe version ofcontentChecksumFlag()
.static void
ncontentChecksumFlag
(long struct, int value) Unsafe version ofcontentChecksumFlag
.static long
ncontentSize
(long struct) Unsafe version ofcontentSize()
.static void
ncontentSize
(long struct, long value) Unsafe version ofcontentSize
.static int
ndictID
(long struct) Unsafe version ofdictID()
.static void
ndictID
(long struct, int value) Unsafe version ofdictID
.static int
nframeType
(long struct) Unsafe version offrameType()
.static void
nframeType
(long struct, int value) Unsafe version offrameType
.set
(int blockSizeID, int blockMode, int contentChecksumFlag, int frameType, long contentSize, int dictID, int blockChecksumFlag) Initializes this struct with the specified values.set
(LZ4FFrameInfo src) Copies the specified struct data to this struct.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. -
BLOCKSIZEID
public static final int BLOCKSIZEIDThe struct member offsets. -
BLOCKMODE
public static final int BLOCKMODEThe struct member offsets. -
CONTENTCHECKSUMFLAG
public static final int CONTENTCHECKSUMFLAGThe struct member offsets. -
FRAMETYPE
public static final int FRAMETYPEThe struct member offsets. -
CONTENTSIZE
public static final int CONTENTSIZEThe struct member offsets. -
DICTID
public static final int DICTIDThe struct member offsets. -
BLOCKCHECKSUMFLAG
public static final int BLOCKCHECKSUMFLAGThe struct member offsets.
-
-
Constructor Details
-
LZ4FFrameInfo
Creates aLZ4FFrameInfo
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<LZ4FFrameInfo>
-
blockSizeID
public int blockSizeID()- Returns:
- the value of the
blockSizeID
field.
-
blockMode
public int blockMode()- Returns:
- the value of the
blockMode
field.
-
contentChecksumFlag
public int contentChecksumFlag()- Returns:
- the value of the
contentChecksumFlag
field.
-
frameType
public int frameType()- Returns:
- the value of the
frameType
field.
-
contentSize
public long contentSize()- Returns:
- the value of the
contentSize
field.
-
dictID
public int dictID()- Returns:
- the value of the
dictID
field.
-
blockChecksumFlag
public int blockChecksumFlag()- Returns:
- the value of the
blockChecksumFlag
field.
-
blockSizeID
Sets the specified value to theblockSizeID
field. -
blockMode
Sets the specified value to theblockMode
field. -
contentChecksumFlag
Sets the specified value to thecontentChecksumFlag
field. -
frameType
Sets the specified value to theframeType
field. -
contentSize
Sets the specified value to thecontentSize
field. -
dictID
Sets the specified value to thedictID
field. -
blockChecksumFlag
Sets the specified value to theblockChecksumFlag
field. -
set
public LZ4FFrameInfo set(int blockSizeID, int blockMode, int contentChecksumFlag, int frameType, long contentSize, int dictID, int blockChecksumFlag) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newLZ4FFrameInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newLZ4FFrameInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newLZ4FFrameInfo
instance allocated withBufferUtils
. -
create
Returns a newLZ4FFrameInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newLZ4FFrameInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newLZ4FFrameInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newLZ4FFrameInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aLZ4FFrameInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newLZ4FFrameInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newLZ4FFrameInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newLZ4FFrameInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newLZ4FFrameInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nblockSizeID
public static int nblockSizeID(long struct) Unsafe version ofblockSizeID()
. -
nblockMode
public static int nblockMode(long struct) Unsafe version ofblockMode()
. -
ncontentChecksumFlag
public static int ncontentChecksumFlag(long struct) Unsafe version ofcontentChecksumFlag()
. -
nframeType
public static int nframeType(long struct) Unsafe version offrameType()
. -
ncontentSize
public static long ncontentSize(long struct) Unsafe version ofcontentSize()
. -
ndictID
public static int ndictID(long struct) Unsafe version ofdictID()
. -
nblockChecksumFlag
public static int nblockChecksumFlag(long struct) Unsafe version ofblockChecksumFlag()
. -
nblockSizeID
public static void nblockSizeID(long struct, int value) Unsafe version ofblockSizeID
. -
nblockMode
public static void nblockMode(long struct, int value) Unsafe version ofblockMode
. -
ncontentChecksumFlag
public static void ncontentChecksumFlag(long struct, int value) Unsafe version ofcontentChecksumFlag
. -
nframeType
public static void nframeType(long struct, int value) Unsafe version offrameType
. -
ncontentSize
public static void ncontentSize(long struct, long value) Unsafe version ofcontentSize
. -
ndictID
public static void ndictID(long struct, int value) Unsafe version ofdictID
. -
nblockChecksumFlag
public static void nblockChecksumFlag(long struct, int value) Unsafe version ofblockChecksumFlag
.
-