Package org.lwjgl.system.linux
Class EpollData.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<EpollData,EpollData.Buffer>
-
- org.lwjgl.system.linux.EpollData.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<EpollData>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- EpollData
public static class EpollData.Buffer extends org.lwjgl.system.StructBuffer<EpollData,EpollData.Buffer> implements org.lwjgl.system.NativeResource
An array ofEpollData
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
fd()
EpollData.Buffer
fd(int value)
Sets the specified value to thefd
field.long
ptr()
EpollData.Buffer
ptr(long value)
Sets the specified value to theptr
field.int
u32()
EpollData.Buffer
u32(int value)
Sets the specified value to theu32
field.long
u64()
EpollData.Buffer
u64(long value)
Sets the specified value to theu64
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newEpollData.Buffer
instance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided byEpollData.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
ptr
public long ptr()
- Returns:
- the value of the
ptr
field.
-
fd
public int fd()
- Returns:
- the value of the
fd
field.
-
u32
public int u32()
- Returns:
- the value of the
u32
field.
-
u64
public long u64()
- Returns:
- the value of the
u64
field.
-
ptr
public EpollData.Buffer ptr(long value)
Sets the specified value to theptr
field.
-
fd
public EpollData.Buffer fd(int value)
Sets the specified value to thefd
field.
-
u32
public EpollData.Buffer u32(int value)
Sets the specified value to theu32
field.
-
u64
public EpollData.Buffer u64(long value)
Sets the specified value to theu64
field.
-
-