Package org.lwjgl.system.linux
Class OpenHow
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct open_how {
__u64 flags;
__u64 mode;
__u64 resolve;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOpenHow(ByteBuffer container) Creates aOpenHowinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenHowcalloc()Returns a newOpenHowinstance allocated withmemCalloc.static OpenHow.Buffercalloc(int capacity) Returns a newOpenHow.Bufferinstance allocated withmemCalloc.static OpenHow.Buffercalloc(int capacity, MemoryStack stack) Returns a newOpenHow.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OpenHowcalloc(MemoryStack stack) Returns a newOpenHowinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OpenHowcreate()Returns a newOpenHowinstance allocated withBufferUtils.static OpenHow.Buffercreate(int capacity) Returns a newOpenHow.Bufferinstance allocated withBufferUtils.static OpenHowcreate(long address) Returns a newOpenHowinstance for the specified memory address.static OpenHow.Buffercreate(long address, int capacity) Create aOpenHow.Bufferinstance at the specified memory.static @Nullable OpenHowcreateSafe(long address) static @Nullable OpenHow.BuffercreateSafe(long address, int capacity) longflags()flags(long value) Sets the specified value to theflagsfield.static OpenHowmalloc()Returns a newOpenHowinstance allocated withmemAlloc.static OpenHow.Buffermalloc(int capacity) Returns a newOpenHow.Bufferinstance allocated withmemAlloc.static OpenHow.Buffermalloc(int capacity, MemoryStack stack) Returns a newOpenHow.Bufferinstance allocated on the specifiedMemoryStack.static OpenHowmalloc(MemoryStack stack) Returns a newOpenHowinstance allocated on the specifiedMemoryStack.longmode()mode(long value) Sets the specified value to themodefield.static longnflags(long struct) Unsafe version offlags().static voidnflags(long struct, long value) Unsafe version offlags.static longnmode(long struct) Unsafe version ofmode().static voidnmode(long struct, long value) Unsafe version ofmode.static longnresolve(long struct) Unsafe version ofresolve().static voidnresolve(long struct, long value) Unsafe version ofresolve.longresolve()resolve(long value) Sets the specified value to theresolvefield.set(long flags, long mode, long resolve) Initializes this struct with the specified values.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. -
FLAGS
public static final int FLAGSThe struct member offsets. -
MODE
public static final int MODEThe struct member offsets. -
RESOLVE
public static final int RESOLVEThe struct member offsets.
-
-
Constructor Details
-
OpenHow
Creates aOpenHowinstance 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). -
flags
public long flags()- Returns:
- the value of the
flagsfield.
-
mode
public long mode()- Returns:
- the value of the
modefield.
-
resolve
public long resolve()- Returns:
- the value of the
resolvefield.
-
flags
Sets the specified value to theflagsfield. -
mode
Sets the specified value to themodefield. -
resolve
Sets the specified value to theresolvefield. -
set
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 newOpenHowinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOpenHowinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOpenHowinstance allocated withBufferUtils. -
create
Returns a newOpenHowinstance for the specified memory address. -
createSafe
-
malloc
Returns a newOpenHow.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOpenHow.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOpenHow.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOpenHow.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newOpenHowinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOpenHowinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOpenHow.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOpenHow.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nflags
public static long nflags(long struct) Unsafe version offlags(). -
nmode
public static long nmode(long struct) Unsafe version ofmode(). -
nresolve
public static long nresolve(long struct) Unsafe version ofresolve(). -
nflags
public static void nflags(long struct, long value) Unsafe version offlags. -
nmode
public static void nmode(long struct, long value) Unsafe version ofmode. -
nresolve
public static void nresolve(long struct, long value) Unsafe version ofresolve.
-