- java.lang.Object
-
- de.ibapl.jnhw.common.memory.AbstractNativeMemory
-
- de.ibapl.jnhw.common.memory.OpaqueMemory32
-
- de.ibapl.jnhw.common.memory.Struct32
-
- de.ibapl.jnhw.posix.Aio.Aiocb<T>
-
- All Implemented Interfaces:
Native
- Enclosing class:
- Aio
public static final class Aio.Aiocb<T extends OpaqueMemory32> extends Struct32
POSIX:structure aiocb.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
OpaqueMemory32.OpaqueMemory32Producer<T extends OpaqueMemory32,P extends AbstractNativeMemory>
-
Nested classes/interfaces inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
AbstractNativeMemory.NativeMemoryAlignment
-
-
Field Summary
Fields Modifier and Type Field Description Signal.Sigevent<T>aio_sigeventThe signal number and value.-
Fields inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
sizeInBytes
-
Fields inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
baseAddress, LOG, memoryOwner
-
-
Constructor Summary
Constructors Constructor Description Aiocb()Aiocb(NativeAddressHolder address)TODO set ByteBuffer ???Aiocb(OpaqueMemory32 owner, int offset)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaio_buf(OpaqueMemory32 aio_buf)The location of buffer.voidaio_buf(OpaqueMemory32 aio_buf, int off, int aio_nbytes)The location of buffer.voidaio_buf(ByteBuffer aio_buf)The location of buffer.NativeAddressHolderaio_buf0()ByteBufferaio_bufAsByteBuffer()The location of buffer.POSIX:structure aiocb.OpaqueMemory32aio_bufAsOpaqueMemory()The location of buffer.POSIX:structure aiocb.intaio_fildes()The file descriptor.voidaio_fildes(int aio_fildes)The file descriptor.intaio_lio_opcode()The operation to be performed.voidaio_lio_opcode(int aio_lio_opcode)The operation to be performed.longaio_nbytes()The length of transfer.longaio_offset()The file offset.voidaio_offset(long aio_offset)The file offset.intaio_reqprio()The request priority offset.voidaio_reqprio(int aio_reqprio)The request priority offset.static intalignof()Get the alignment of struct lconv natively.voidnativeToString(Appendable sb, String indentPrefix, String indent)static intoffsetof_Aio_sigevent()static intsizeof()Get the real size of struct aiocb natively.-
Methods inherited from class de.ibapl.jnhw.common.memory.Struct32
getBaseDataType, nativeToHexString
-
Methods inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
calcNextOffset, clear, copy, copy, equals, getByte, hashCode, memset, nativeToString, offsetof, printMemory, printMemory, setByte, toBytes, toString
-
Methods inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
ENOMEM, isSameAddress
-
-
-
-
Field Detail
-
aio_sigevent
public final Signal.Sigevent<T extends OpaqueMemory32> aio_sigevent
The signal number and value. POSIX:structure aiocb.
-
-
Constructor Detail
-
Aiocb
public Aiocb(OpaqueMemory32 owner, int offset) throws NoSuchNativeTypeException
- Throws:
NoSuchNativeTypeException
-
Aiocb
public Aiocb() throws NoSuchNativeTypeException- Throws:
NoSuchNativeTypeException
-
Aiocb
public Aiocb(NativeAddressHolder address) throws NoSuchNativeTypeException
TODO set ByteBuffer ???- Parameters:
address-- Throws:
NoSuchNativeTypeException
-
-
Method Detail
-
sizeof
@SizeOf public static int sizeof() throws NoSuchNativeTypeException
Get the real size of struct aiocb natively.- Returns:
- the native value sizeof(struct aiocb).
- Throws:
NoSuchNativeTypeException
-
alignof
@AlignOf public static int alignof() throws NoSuchNativeTypeException
Get the alignment of struct lconv natively.- Returns:
- the native value __alignof__(struct lconv).
- Throws:
NoSuchNativeTypeException
-
offsetof_Aio_sigevent
public static int offsetof_Aio_sigevent() throws NoSuchNativeTypeException- Throws:
NoSuchNativeTypeException
-
aio_fildes
public int aio_fildes() throws NoSuchNativeTypeExceptionThe file descriptor. POSIX:structure aiocb.- Returns:
- the native value of aio_fildes.
- Throws:
NoSuchNativeTypeException
-
aio_fildes
public void aio_fildes(int aio_fildes) throws NoSuchNativeTypeExceptionThe file descriptor. POSIX:structure aiocb.- Parameters:
aio_fildes- the value of aio_fildes to be set natively.- Throws:
NoSuchNativeTypeException
-
aio_offset
public long aio_offset() throws NoSuchNativeTypeExceptionThe file offset. POSIX:structure aiocb.- Returns:
- the native value of aio_offset.
- Throws:
NoSuchNativeTypeException
-
aio_offset
public void aio_offset(long aio_offset) throws NoSuchNativeTypeExceptionThe file offset. POSIX:structure aiocb.- Parameters:
aio_offset- the value of aio_offset to be set natively.- Throws:
NoSuchNativeTypeException
-
aio_buf0
public final NativeAddressHolder aio_buf0() throws NoSuchNativeTypeException
- Throws:
NoSuchNativeTypeException
-
aio_bufAsByteBuffer
public ByteBuffer aio_bufAsByteBuffer() throws NoSuchNativeTypeException
The location of buffer.POSIX:structure aiocb.- Returns:
- the native value of aio_buf.
- Throws:
NoSuchNativeTypeException
-
aio_bufAsOpaqueMemory
public OpaqueMemory32 aio_bufAsOpaqueMemory() throws NoSuchNativeTypeException
The location of buffer.POSIX:structure aiocb.- Returns:
- the native value of aio_buf.
- Throws:
NoSuchNativeTypeException
-
aio_buf
public void aio_buf(ByteBuffer aio_buf) throws NoSuchNativeTypeException
The location of buffer. POSIX:structure aiocb. aio_nbytes will also be set- Parameters:
aio_buf- the value of aio_buf to be set natively.- Throws:
NoSuchNativeTypeException
-
aio_buf
public void aio_buf(OpaqueMemory32 aio_buf) throws NoSuchNativeTypeException
The location of buffer. POSIX:structure aiocb. aio_nbytes will also be set- Parameters:
aio_buf- the value of aio_buf to be set natively.- Throws:
NoSuchNativeTypeException
-
aio_buf
public void aio_buf(OpaqueMemory32 aio_buf, int off, int aio_nbytes) throws NoSuchNativeTypeException
The location of buffer. POSIX:structure aiocb. aio_nbytes will also be set- Parameters:
aio_buf- the value of aio_buf to be set natively.- Throws:
ArrayIndexOutOfBoundsException- ifofforaio_nbytesout of bounds.NoSuchNativeTypeException
-
aio_nbytes
public long aio_nbytes() throws NoSuchNativeTypeExceptionThe length of transfer. POSIX:structure aiocb. This is set while setting buf to ByteBuffer.remaining() or OpaqueMemorys size....- Returns:
- the native value of aio_nbytes.
- Throws:
NoSuchNativeTypeException
-
aio_reqprio
public int aio_reqprio() throws NoSuchNativeTypeExceptionThe request priority offset. POSIX:structure aiocb.- Returns:
- the native value of aio_reqprio.
- Throws:
NoSuchNativeTypeException
-
aio_reqprio
public void aio_reqprio(int aio_reqprio) throws NoSuchNativeTypeExceptionThe request priority offset. POSIX:structure aiocb.- Parameters:
aio_reqprio- the value of aio_reqprio to be set natively.- Throws:
NoSuchNativeTypeException
-
aio_lio_opcode
public int aio_lio_opcode() throws NoSuchNativeTypeExceptionThe operation to be performed. POSIX:structure aiocb.- Returns:
- the native value of aio_lio_opcode.
- Throws:
NoSuchNativeTypeException
-
aio_lio_opcode
public void aio_lio_opcode(int aio_lio_opcode) throws NoSuchNativeTypeExceptionThe operation to be performed. POSIX:structure aiocb.- Parameters:
aio_lio_opcode- the value of aio_lio_opcode to be set natively.- Throws:
NoSuchNativeTypeException
-
nativeToString
public void nativeToString(Appendable sb, String indentPrefix, String indent) throws IOException
- Specified by:
nativeToStringin interfaceNative- Overrides:
nativeToStringin classOpaqueMemory32- Throws:
IOException
-
-