Class IOURingRecvmsgOut

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class IOURingRecvmsgOut extends Struct<IOURingRecvmsgOut> implements NativeResource

 struct io_uring_recvmsg_out {
     __u32 namelen;
     __u32 controllen;
     __u32 payloadlen;
     __u32 flags;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • NAMELEN

      public static final int NAMELEN
      The struct member offsets.
    • CONTROLLEN

      public static final int CONTROLLEN
      The struct member offsets.
    • PAYLOADLEN

      public static final int PAYLOADLEN
      The struct member offsets.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
  • Constructor Details

    • IOURingRecvmsgOut

      public IOURingRecvmsgOut(ByteBuffer container)
      Creates a IOURingRecvmsgOut instance at the current position of the specified ByteBuffer container. 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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<IOURingRecvmsgOut>
    • namelen

      public int namelen()
      Returns:
      the value of the namelen field.
    • controllen

      public int controllen()
      Returns:
      the value of the controllen field.
    • payloadlen

      public int payloadlen()
      Returns:
      the value of the payloadlen field.
    • flags

      public int flags()
      Returns:
      the value of the flags field.
    • namelen

      public IOURingRecvmsgOut namelen(int value)
      Sets the specified value to the namelen field.
    • controllen

      public IOURingRecvmsgOut controllen(int value)
      Sets the specified value to the controllen field.
    • payloadlen

      public IOURingRecvmsgOut payloadlen(int value)
      Sets the specified value to the payloadlen field.
    • flags

      public IOURingRecvmsgOut flags(int value)
      Sets the specified value to the flags field.
    • set

      public IOURingRecvmsgOut set(int namelen, int controllen, int payloadlen, int flags)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static IOURingRecvmsgOut malloc()
      Returns a new IOURingRecvmsgOut instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static IOURingRecvmsgOut calloc()
      Returns a new IOURingRecvmsgOut instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static IOURingRecvmsgOut create()
      Returns a new IOURingRecvmsgOut instance allocated with BufferUtils.
    • create

      public static IOURingRecvmsgOut create(long address)
      Returns a new IOURingRecvmsgOut instance for the specified memory address.
    • createSafe

      public static @Nullable IOURingRecvmsgOut createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static IOURingRecvmsgOut.Buffer malloc(int capacity)
      Returns a new IOURingRecvmsgOut.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static IOURingRecvmsgOut.Buffer calloc(int capacity)
      Returns a new IOURingRecvmsgOut.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static IOURingRecvmsgOut.Buffer create(int capacity)
      Returns a new IOURingRecvmsgOut.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static IOURingRecvmsgOut.Buffer create(long address, int capacity)
      Create a IOURingRecvmsgOut.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable IOURingRecvmsgOut.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static IOURingRecvmsgOut malloc(MemoryStack stack)
      Returns a new IOURingRecvmsgOut instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static IOURingRecvmsgOut calloc(MemoryStack stack)
      Returns a new IOURingRecvmsgOut instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static IOURingRecvmsgOut.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new IOURingRecvmsgOut.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static IOURingRecvmsgOut.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new IOURingRecvmsgOut.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nnamelen

      public static int nnamelen(long struct)
      Unsafe version of namelen().
    • ncontrollen

      public static int ncontrollen(long struct)
      Unsafe version of controllen().
    • npayloadlen

      public static int npayloadlen(long struct)
      Unsafe version of payloadlen().
    • nflags

      public static int nflags(long struct)
      Unsafe version of flags().
    • nnamelen

      public static void nnamelen(long struct, int value)
      Unsafe version of namelen.
    • ncontrollen

      public static void ncontrollen(long struct, int value)
      Unsafe version of controllen.
    • npayloadlen

      public static void npayloadlen(long struct, int value)
      Unsafe version of payloadlen.
    • nflags

      public static void nflags(long struct, int value)
      Unsafe version of flags.