Package org.lwjgl.util.libdivide
Class LibDivideS64
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.libdivide.LibDivideS64
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class LibDivideS64 extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct libdivide_s64_t { int64_t magic; uint8_t more; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLibDivideS64.BufferAn array ofLibDivideS64structs.
-
Constructor Summary
Constructors Constructor Description LibDivideS64(java.nio.ByteBuffer container)Creates aLibDivideS64instance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LibDivideS64calloc()Returns a newLibDivideS64instance allocated withmemCalloc.static LibDivideS64.Buffercalloc(int capacity)Returns a newLibDivideS64.Bufferinstance allocated withmemCalloc.static LibDivideS64callocStack()Returns a newLibDivideS64instance allocated on the thread-localMemoryStackand initializes all its bits to zero.static LibDivideS64.BuffercallocStack(int capacity)Returns a newLibDivideS64.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static LibDivideS64.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newLibDivideS64.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LibDivideS64callocStack(org.lwjgl.system.MemoryStack stack)Returns a newLibDivideS64instance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LibDivideS64create()Returns a newLibDivideS64instance allocated withBufferUtils.static LibDivideS64.Buffercreate(int capacity)Returns a newLibDivideS64.Bufferinstance allocated withBufferUtils.static LibDivideS64create(long address)Returns a newLibDivideS64instance for the specified memory address.static LibDivideS64.Buffercreate(long address, int capacity)Create aLibDivideS64.Bufferinstance at the specified memory.static LibDivideS64createSafe(long address)static LibDivideS64.BuffercreateSafe(long address, int capacity)longmagic()Returns the value of themagicfield.LibDivideS64magic(long value)Sets the specified value to themagicfield.static LibDivideS64malloc()Returns a newLibDivideS64instance allocated withmemAlloc.static LibDivideS64.Buffermalloc(int capacity)Returns a newLibDivideS64.Bufferinstance allocated withmemAlloc.static LibDivideS64mallocStack()Returns a newLibDivideS64instance allocated on the thread-localMemoryStack.static LibDivideS64.BuffermallocStack(int capacity)Returns a newLibDivideS64.Bufferinstance allocated on the thread-localMemoryStack.static LibDivideS64.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newLibDivideS64.Bufferinstance allocated on the specifiedMemoryStack.static LibDivideS64mallocStack(org.lwjgl.system.MemoryStack stack)Returns a newLibDivideS64instance allocated on the specifiedMemoryStack.bytemore()Returns the value of themorefield.LibDivideS64more(byte value)Sets the specified value to themorefield.static longnmagic(long struct)Unsafe version ofmagic().static voidnmagic(long struct, long value)Unsafe version ofmagic.static bytenmore(long struct)Unsafe version ofmore().static voidnmore(long struct, byte value)Unsafe version ofmore.LibDivideS64set(long magic, byte more)Initializes this struct with the specified values.LibDivideS64set(LibDivideS64 src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
LibDivideS64
public LibDivideS64(java.nio.ByteBuffer container)
Creates aLibDivideS64instance 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
-
magic
public long magic()
Returns the value of themagicfield.
-
more
public byte more()
Returns the value of themorefield.
-
magic
public LibDivideS64 magic(long value)
Sets the specified value to themagicfield.
-
more
public LibDivideS64 more(byte value)
Sets the specified value to themorefield.
-
set
public LibDivideS64 set(long magic, byte more)
Initializes this struct with the specified values.
-
set
public LibDivideS64 set(LibDivideS64 src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static LibDivideS64 malloc()
Returns a newLibDivideS64instance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static LibDivideS64 calloc()
Returns a newLibDivideS64instance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static LibDivideS64 create()
Returns a newLibDivideS64instance allocated withBufferUtils.
-
create
public static LibDivideS64 create(long address)
Returns a newLibDivideS64instance for the specified memory address.
-
createSafe
@Nullable public static LibDivideS64 createSafe(long address)
-
malloc
public static LibDivideS64.Buffer malloc(int capacity)
Returns a newLibDivideS64.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static LibDivideS64.Buffer calloc(int capacity)
Returns a newLibDivideS64.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static LibDivideS64.Buffer create(int capacity)
Returns a newLibDivideS64.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static LibDivideS64.Buffer create(long address, int capacity)
Create aLibDivideS64.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static LibDivideS64.Buffer createSafe(long address, int capacity)
-
mallocStack
public static LibDivideS64 mallocStack()
Returns a newLibDivideS64instance allocated on the thread-localMemoryStack.
-
callocStack
public static LibDivideS64 callocStack()
Returns a newLibDivideS64instance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static LibDivideS64 mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newLibDivideS64instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static LibDivideS64 callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newLibDivideS64instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static LibDivideS64.Buffer mallocStack(int capacity)
Returns a newLibDivideS64.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static LibDivideS64.Buffer callocStack(int capacity)
Returns a newLibDivideS64.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static LibDivideS64.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLibDivideS64.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static LibDivideS64.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLibDivideS64.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nmagic
public static long nmagic(long struct)
Unsafe version ofmagic().
-
nmore
public static byte nmore(long struct)
Unsafe version ofmore().
-
nmagic
public static void nmagic(long struct, long value)Unsafe version ofmagic.
-
nmore
public static void nmore(long struct, byte value)Unsafe version ofmore.
-
-