Package org.lwjgl.util.zstd
Class ZSTDBounds
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.zstd.ZSTDBounds
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class ZSTDBounds extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct ZSTD_bounds { size_t error; int lowerBound; int upperBound; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classZSTDBounds.BufferAn array ofZSTDBoundsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intERROR
LOWERBOUNDThe struct member offsets.static intSIZEOFThe struct size in bytes.static intUPPERBOUNDThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description ZSTDBounds(java.nio.ByteBuffer container)Creates aZSTDBoundsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ZSTDBoundscalloc()Returns a newZSTDBoundsinstance allocated withmemCalloc.static ZSTDBounds.Buffercalloc(int capacity)Returns a newZSTDBounds.Bufferinstance allocated withmemCalloc.static ZSTDBounds.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newZSTDBounds.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZSTDBoundscalloc(org.lwjgl.system.MemoryStack stack)Returns a newZSTDBoundsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ZSTDBoundscallocStack()Deprecated.static ZSTDBounds.BuffercallocStack(int capacity)Deprecated.static ZSTDBounds.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static ZSTDBoundscallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static ZSTDBoundscreate()Returns a newZSTDBoundsinstance allocated withBufferUtils.static ZSTDBounds.Buffercreate(int capacity)Returns a newZSTDBounds.Bufferinstance allocated withBufferUtils.static ZSTDBoundscreate(long address)Returns a newZSTDBoundsinstance for the specified memory address.static ZSTDBounds.Buffercreate(long address, int capacity)Create aZSTDBounds.Bufferinstance at the specified memory.static ZSTDBoundscreateSafe(long address)static ZSTDBounds.BuffercreateSafe(long address, int capacity)longerror()intlowerBound()static ZSTDBoundsmalloc()Returns a newZSTDBoundsinstance allocated withmemAlloc.static ZSTDBounds.Buffermalloc(int capacity)Returns a newZSTDBounds.Bufferinstance allocated withmemAlloc.static ZSTDBounds.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newZSTDBounds.Bufferinstance allocated on the specifiedMemoryStack.static ZSTDBoundsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newZSTDBoundsinstance allocated on the specifiedMemoryStack.static ZSTDBoundsmallocStack()Deprecated.static ZSTDBounds.BuffermallocStack(int capacity)Deprecated.static ZSTDBounds.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static ZSTDBoundsmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static longnerror(long struct)Unsafe version oferror().static intnlowerBound(long struct)Unsafe version oflowerBound().static intnupperBound(long struct)Unsafe version ofupperBound().intsizeof()intupperBound()
-
-
-
Constructor Detail
-
ZSTDBounds
public ZSTDBounds(java.nio.ByteBuffer container)
Creates aZSTDBoundsinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
error
public long error()
- Returns:
- the value of the
errorfield.
-
lowerBound
public int lowerBound()
- Returns:
- the value of the
lowerBoundfield.
-
upperBound
public int upperBound()
- Returns:
- the value of the
upperBoundfield.
-
malloc
public static ZSTDBounds malloc()
Returns a newZSTDBoundsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static ZSTDBounds calloc()
Returns a newZSTDBoundsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static ZSTDBounds create()
Returns a newZSTDBoundsinstance allocated withBufferUtils.
-
create
public static ZSTDBounds create(long address)
Returns a newZSTDBoundsinstance for the specified memory address.
-
createSafe
@Nullable public static ZSTDBounds createSafe(long address)
-
malloc
public static ZSTDBounds.Buffer malloc(int capacity)
Returns a newZSTDBounds.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static ZSTDBounds.Buffer calloc(int capacity)
Returns a newZSTDBounds.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static ZSTDBounds.Buffer create(int capacity)
Returns a newZSTDBounds.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static ZSTDBounds.Buffer create(long address, int capacity)
Create aZSTDBounds.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static ZSTDBounds.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static ZSTDBounds mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static ZSTDBounds callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static ZSTDBounds mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static ZSTDBounds callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static ZSTDBounds.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static ZSTDBounds.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static ZSTDBounds.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static ZSTDBounds.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static ZSTDBounds malloc(org.lwjgl.system.MemoryStack stack)
Returns a newZSTDBoundsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static ZSTDBounds calloc(org.lwjgl.system.MemoryStack stack)
Returns a newZSTDBoundsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static ZSTDBounds.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newZSTDBounds.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static ZSTDBounds.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newZSTDBounds.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nerror
public static long nerror(long struct)
Unsafe version oferror().
-
nlowerBound
public static int nlowerBound(long struct)
Unsafe version oflowerBound().
-
nupperBound
public static int nupperBound(long struct)
Unsafe version ofupperBound().
-
-