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.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 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
ConstructorsConstructorDescriptionLZ4FFrameInfo(ByteBuffer container) Creates aLZ4FFrameInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintblockChecksumFlag(int value) Sets the specified value to theblockChecksumFlagfield.intblockMode(int value) Sets the specified value to theblockModefield.intblockSizeID(int value) Sets the specified value to theblockSizeIDfield.static LZ4FFrameInfocalloc()Returns a newLZ4FFrameInfoinstance allocated withmemCalloc.static LZ4FFrameInfo.Buffercalloc(int capacity) Returns a newLZ4FFrameInfo.Bufferinstance allocated withmemCalloc.static LZ4FFrameInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newLZ4FFrameInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LZ4FFrameInfocalloc(MemoryStack stack) Returns a newLZ4FFrameInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LZ4FFrameInfoDeprecated.static LZ4FFrameInfo.BuffercallocStack(int capacity) Deprecated.static LZ4FFrameInfo.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static LZ4FFrameInfocallocStack(MemoryStack stack) Deprecated.intcontentChecksumFlag(int value) Sets the specified value to thecontentChecksumFlagfield.longcontentSize(long value) Sets the specified value to thecontentSizefield.static LZ4FFrameInfocreate()Returns a newLZ4FFrameInfoinstance allocated withBufferUtils.static LZ4FFrameInfo.Buffercreate(int capacity) Returns a newLZ4FFrameInfo.Bufferinstance allocated withBufferUtils.static LZ4FFrameInfocreate(long address) Returns a newLZ4FFrameInfoinstance for the specified memory address.static LZ4FFrameInfo.Buffercreate(long address, int capacity) Create aLZ4FFrameInfo.Bufferinstance at the specified memory.static @Nullable LZ4FFrameInfocreateSafe(long address) static @Nullable LZ4FFrameInfo.BuffercreateSafe(long address, int capacity) intdictID()dictID(int value) Sets the specified value to thedictIDfield.intframeType(int value) Sets the specified value to theframeTypefield.static LZ4FFrameInfomalloc()Returns a newLZ4FFrameInfoinstance allocated withmemAlloc.static LZ4FFrameInfo.Buffermalloc(int capacity) Returns a newLZ4FFrameInfo.Bufferinstance allocated withmemAlloc.static LZ4FFrameInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newLZ4FFrameInfo.Bufferinstance allocated on the specifiedMemoryStack.static LZ4FFrameInfomalloc(MemoryStack stack) Returns a newLZ4FFrameInfoinstance allocated on the specifiedMemoryStack.static LZ4FFrameInfoDeprecated.static LZ4FFrameInfo.BuffermallocStack(int capacity) Deprecated.static LZ4FFrameInfo.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static LZ4FFrameInfomallocStack(MemoryStack stack) Deprecated.static intnblockChecksumFlag(long struct) Unsafe version ofblockChecksumFlag().static voidnblockChecksumFlag(long struct, int value) Unsafe version ofblockChecksumFlag.static intnblockMode(long struct) Unsafe version ofblockMode().static voidnblockMode(long struct, int value) Unsafe version ofblockMode.static intnblockSizeID(long struct) Unsafe version ofblockSizeID().static voidnblockSizeID(long struct, int value) Unsafe version ofblockSizeID.static intncontentChecksumFlag(long struct) Unsafe version ofcontentChecksumFlag().static voidncontentChecksumFlag(long struct, int value) Unsafe version ofcontentChecksumFlag.static longncontentSize(long struct) Unsafe version ofcontentSize().static voidncontentSize(long struct, long value) Unsafe version ofcontentSize.static intndictID(long struct) Unsafe version ofdictID().static voidndictID(long struct, int value) Unsafe version ofdictID.static intnframeType(long struct) Unsafe version offrameType().static voidnframeType(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.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. -
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 aLZ4FFrameInfoinstance 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<LZ4FFrameInfo>
-
blockSizeID
public int blockSizeID()- Returns:
- the value of the
blockSizeIDfield.
-
blockMode
public int blockMode()- Returns:
- the value of the
blockModefield.
-
contentChecksumFlag
public int contentChecksumFlag()- Returns:
- the value of the
contentChecksumFlagfield.
-
frameType
public int frameType()- Returns:
- the value of the
frameTypefield.
-
contentSize
public long contentSize()- Returns:
- the value of the
contentSizefield.
-
dictID
public int dictID()- Returns:
- the value of the
dictIDfield.
-
blockChecksumFlag
public int blockChecksumFlag()- Returns:
- the value of the
blockChecksumFlagfield.
-
blockSizeID
Sets the specified value to theblockSizeIDfield. -
blockMode
Sets the specified value to theblockModefield. -
contentChecksumFlag
Sets the specified value to thecontentChecksumFlagfield. -
frameType
Sets the specified value to theframeTypefield. -
contentSize
Sets the specified value to thecontentSizefield. -
dictID
Sets the specified value to thedictIDfield. -
blockChecksumFlag
Sets the specified value to theblockChecksumFlagfield. -
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 newLZ4FFrameInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newLZ4FFrameInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newLZ4FFrameInfoinstance allocated withBufferUtils. -
create
Returns a newLZ4FFrameInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newLZ4FFrameInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newLZ4FFrameInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newLZ4FFrameInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aLZ4FFrameInfo.Bufferinstance 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 newLZ4FFrameInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newLZ4FFrameInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newLZ4FFrameInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newLZ4FFrameInfo.Bufferinstance allocated on the specifiedMemoryStackand 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.
-