Package org.lwjgl.system.linux
Class Sockaddr.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<Sockaddr,Sockaddr.Buffer>
-
- org.lwjgl.system.linux.Sockaddr.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<Sockaddr>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- Sockaddr
public static class Sockaddr.Buffer extends org.lwjgl.system.StructBuffer<Sockaddr,Sockaddr.Buffer> implements org.lwjgl.system.NativeResource
An array ofSockaddrstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffersa_data()bytesa_data(int index)Sockaddr.Buffersa_data(int index, byte value)Sets the specified value at the specified index of theSockaddr.sa_data()field.Sockaddr.Buffersa_data(java.nio.ByteBuffer value)Copies the specifiedByteBufferto theSockaddr.sa_data()field.shortsa_family()Sockaddr.Buffersa_family(short value)Sets the specified value to theSockaddr.sa_family()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newSockaddr.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 bySockaddr.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
-
sa_family
public short sa_family()
- Returns:
- the value of the
Sockaddr.sa_family()field.
-
sa_data
public java.nio.ByteBuffer sa_data()
- Returns:
- a
ByteBufferview of theSockaddr.sa_data()field.
-
sa_data
public byte sa_data(int index)
- Returns:
- the value at the specified index of the
Sockaddr.sa_data()field.
-
sa_family
public Sockaddr.Buffer sa_family(short value)
Sets the specified value to theSockaddr.sa_family()field.
-
sa_data
public Sockaddr.Buffer sa_data(java.nio.ByteBuffer value)
Copies the specifiedByteBufferto theSockaddr.sa_data()field.
-
sa_data
public Sockaddr.Buffer sa_data(int index, byte value)
Sets the specified value at the specified index of theSockaddr.sa_data()field.
-
-