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 ofEpollDatastructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intfd()EpollData.Bufferfd(int value)Sets the specified value to thefdfield.longptr()EpollData.Bufferptr(long value)Sets the specified value to theptrfield.intu32()EpollData.Bufferu32(int value)Sets the specified value to theu32field.longu64()EpollData.Bufferu64(long value)Sets the specified value to theu64field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newEpollData.Bufferinstance 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
ptrfield.
-
fd
public int fd()
- Returns:
- the value of the
fdfield.
-
u32
public int u32()
- Returns:
- the value of the
u32field.
-
u64
public long u64()
- Returns:
- the value of the
u64field.
-
ptr
public EpollData.Buffer ptr(long value)
Sets the specified value to theptrfield.
-
fd
public EpollData.Buffer fd(int value)
Sets the specified value to thefdfield.
-
u32
public EpollData.Buffer u32(int value)
Sets the specified value to theu32field.
-
u64
public EpollData.Buffer u64(long value)
Sets the specified value to theu64field.
-
-