Class SDL_AsyncIOOutcome.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<SDL_AsyncIOOutcome>, NativeResource, Pointer
Enclosing class:
SDL_AsyncIOOutcome

public static class SDL_AsyncIOOutcome.Buffer extends StructBuffer<SDL_AsyncIOOutcome, SDL_AsyncIOOutcome.Buffer> implements NativeResource
An array of SDL_AsyncIOOutcome structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new SDL_AsyncIOOutcome.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 by SDL_AsyncIOOutcome.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 Details

    • asyncio

      @NativeType("SDL_AsyncIO *") public long asyncio()
      Returns:
      the value of the asyncio field.
    • type

      @NativeType("SDL_AsyncIOTaskType") public int type()
      Returns:
      the value of the type field.
    • result

      @NativeType("SDL_AsyncIOResult") public int result()
      Returns:
      the value of the result field.
    • buffer

      @NativeType("void *") public ByteBuffer buffer(int capacity)
      Returns:
      a ByteBuffer view of the data pointed to by the buffer field.
    • offset

      @NativeType("Uint64") public long offset()
      Returns:
      the value of the offset field.
    • bytes_requested

      @NativeType("Uint64") public long bytes_requested()
      Returns:
      the value of the bytes_requested field.
    • bytes_transferred

      @NativeType("Uint64") public long bytes_transferred()
      Returns:
      the value of the bytes_transferred field.
    • userdata

      @NativeType("void *") public long userdata()
      Returns:
      the value of the userdata field.