Package org.lwjgl.system.linux
Class FOwnerEx
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct
org.lwjgl.system.linux.FOwnerEx
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class FOwnerEx
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Layout
struct f_owner_ex {
int type;
pid_t pid;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionFOwnerEx
(ByteBuffer container) Creates aFOwnerEx
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FOwnerEx
calloc()
Returns a newFOwnerEx
instance allocated withmemCalloc
.static FOwnerEx.Buffer
calloc
(int capacity) Returns a newFOwnerEx.Buffer
instance allocated withmemCalloc
.static FOwnerEx.Buffer
calloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newFOwnerEx.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FOwnerEx
calloc
(org.lwjgl.system.MemoryStack stack) Returns a newFOwnerEx
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FOwnerEx
create()
Returns a newFOwnerEx
instance allocated withBufferUtils
.static FOwnerEx.Buffer
create
(int capacity) Returns a newFOwnerEx.Buffer
instance allocated withBufferUtils
.static FOwnerEx
create
(long address) Returns a newFOwnerEx
instance for the specified memory address.static FOwnerEx.Buffer
create
(long address, int capacity) Create aFOwnerEx.Buffer
instance at the specified memory.static FOwnerEx
createSafe
(long address) static FOwnerEx.Buffer
createSafe
(long address, int capacity) static FOwnerEx
malloc()
Returns a newFOwnerEx
instance allocated withmemAlloc
.static FOwnerEx.Buffer
malloc
(int capacity) Returns a newFOwnerEx.Buffer
instance allocated withmemAlloc
.static FOwnerEx.Buffer
malloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newFOwnerEx.Buffer
instance allocated on the specifiedMemoryStack
.static FOwnerEx
malloc
(org.lwjgl.system.MemoryStack stack) Returns a newFOwnerEx
instance allocated on the specifiedMemoryStack
.static int
npid
(long struct) Unsafe version ofpid()
.static void
npid
(long struct, int value) Unsafe version ofpid
.static int
ntype
(long struct) Unsafe version oftype()
.static void
ntype
(long struct, int value) Unsafe version oftype
.int
pid()
pid
(int value) Sets the specified value to thepid
field.set
(int type, int pid) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
int
type()
type
(int value) Sets the specified value to thetype
field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate
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. -
TYPE
public static final int TYPEThe struct member offsets. -
PID
public static final int PIDThe struct member offsets.
-
-
Constructor Details
-
FOwnerEx
Creates aFOwnerEx
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()- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
type
public int type()- Returns:
- the value of the
type
field.
-
pid
public int pid()- Returns:
- the value of the
pid
field.
-
type
Sets the specified value to thetype
field. -
pid
Sets the specified value to thepid
field. -
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 newFOwnerEx
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFOwnerEx
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFOwnerEx
instance allocated withBufferUtils
. -
create
Returns a newFOwnerEx
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFOwnerEx.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFOwnerEx.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFOwnerEx.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFOwnerEx.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFOwnerEx
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFOwnerEx
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFOwnerEx.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFOwnerEx.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype()
. -
npid
public static int npid(long struct) Unsafe version ofpid()
. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype
. -
npid
public static void npid(long struct, int value) Unsafe version ofpid
.
-