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:
java.lang.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 Modifier and Type Class Description static class
FOwnerEx.Buffer
An array ofFOwnerEx
structs.
-
Constructor Summary
Constructors Constructor Description FOwnerEx(java.nio.ByteBuffer container)
Creates aFOwnerEx
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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()
FOwnerEx
pid(int value)
Sets the specified value to thepid
field.FOwnerEx
set(int type, int pid)
Initializes this struct with the specified values.FOwnerEx
set(FOwnerEx src)
Copies the specified struct data to this struct.int
sizeof()
int
type()
FOwnerEx
type(int value)
Sets the specified value to thetype
field.
-
-
-
Constructor Detail
-
FOwnerEx
public FOwnerEx(java.nio.ByteBuffer container)
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 Detail
-
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
public FOwnerEx type(int value)
Sets the specified value to thetype
field.
-
pid
public FOwnerEx pid(int value)
Sets the specified value to thepid
field.
-
set
public FOwnerEx set(int type, int pid)
Initializes this struct with the specified values.
-
set
public FOwnerEx set(FOwnerEx src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static FOwnerEx malloc()
Returns a newFOwnerEx
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static FOwnerEx calloc()
Returns a newFOwnerEx
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static FOwnerEx create()
Returns a newFOwnerEx
instance allocated withBufferUtils
.
-
create
public static FOwnerEx create(long address)
Returns a newFOwnerEx
instance for the specified memory address.
-
createSafe
@Nullable public static FOwnerEx createSafe(long address)
-
malloc
public static FOwnerEx.Buffer malloc(int capacity)
Returns a newFOwnerEx.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static FOwnerEx.Buffer calloc(int capacity)
Returns a newFOwnerEx.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static FOwnerEx.Buffer create(int capacity)
Returns a newFOwnerEx.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static FOwnerEx.Buffer create(long address, int capacity)
Create aFOwnerEx.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static FOwnerEx.Buffer createSafe(long address, int capacity)
-
malloc
public static FOwnerEx malloc(org.lwjgl.system.MemoryStack stack)
Returns a newFOwnerEx
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static FOwnerEx calloc(org.lwjgl.system.MemoryStack stack)
Returns a newFOwnerEx
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static FOwnerEx.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newFOwnerEx.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
calloc
public 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.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
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
.
-
-