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.NativeResourceLayout
struct f_owner_ex { int type; pid_t pid; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFOwnerEx.BufferAn array ofFOwnerExstructs.
-
Constructor Summary
Constructors Constructor Description FOwnerEx(java.nio.ByteBuffer container)Creates aFOwnerExinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FOwnerExcalloc()Returns a newFOwnerExinstance allocated withmemCalloc.static FOwnerEx.Buffercalloc(int capacity)Returns a newFOwnerEx.Bufferinstance allocated withmemCalloc.static FOwnerEx.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newFOwnerEx.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FOwnerExcalloc(org.lwjgl.system.MemoryStack stack)Returns a newFOwnerExinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FOwnerExcreate()Returns a newFOwnerExinstance allocated withBufferUtils.static FOwnerEx.Buffercreate(int capacity)Returns a newFOwnerEx.Bufferinstance allocated withBufferUtils.static FOwnerExcreate(long address)Returns a newFOwnerExinstance for the specified memory address.static FOwnerEx.Buffercreate(long address, int capacity)Create aFOwnerEx.Bufferinstance at the specified memory.static FOwnerExcreateSafe(long address)static FOwnerEx.BuffercreateSafe(long address, int capacity)static FOwnerExmalloc()Returns a newFOwnerExinstance allocated withmemAlloc.static FOwnerEx.Buffermalloc(int capacity)Returns a newFOwnerEx.Bufferinstance allocated withmemAlloc.static FOwnerEx.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newFOwnerEx.Bufferinstance allocated on the specifiedMemoryStack.static FOwnerExmalloc(org.lwjgl.system.MemoryStack stack)Returns a newFOwnerExinstance allocated on the specifiedMemoryStack.static intnpid(long struct)Unsafe version ofpid().static voidnpid(long struct, int value)Unsafe version ofpid.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.intpid()FOwnerExpid(int value)Sets the specified value to thepidfield.FOwnerExset(int type, int pid)Initializes this struct with the specified values.FOwnerExset(FOwnerEx src)Copies the specified struct data to this struct.intsizeof()inttype()FOwnerExtype(int value)Sets the specified value to thetypefield.
-
-
-
Constructor Detail
-
FOwnerEx
public FOwnerEx(java.nio.ByteBuffer container)
Creates aFOwnerExinstance 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
-
type
public int type()
- Returns:
- the value of the
typefield.
-
pid
public int pid()
- Returns:
- the value of the
pidfield.
-
type
public FOwnerEx type(int value)
Sets the specified value to thetypefield.
-
pid
public FOwnerEx pid(int value)
Sets the specified value to thepidfield.
-
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 newFOwnerExinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static FOwnerEx calloc()
Returns a newFOwnerExinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static FOwnerEx create()
Returns a newFOwnerExinstance allocated withBufferUtils.
-
create
public static FOwnerEx create(long address)
Returns a newFOwnerExinstance for the specified memory address.
-
createSafe
@Nullable public static FOwnerEx createSafe(long address)
-
malloc
public static FOwnerEx.Buffer malloc(int capacity)
Returns a newFOwnerEx.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static FOwnerEx.Buffer calloc(int capacity)
Returns a newFOwnerEx.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static FOwnerEx.Buffer create(int capacity)
Returns a newFOwnerEx.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static FOwnerEx.Buffer create(long address, int capacity)
Create aFOwnerEx.Bufferinstance 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 newFOwnerExinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static FOwnerEx calloc(org.lwjgl.system.MemoryStack stack)
Returns a newFOwnerExinstance allocated on the specifiedMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-