Package org.lwjgl.sdl

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

      public long asyncio()
      Returns:
      the value of the asyncio field.
    • type

      public int type()
      Returns:
      the value of the type field.
    • result

      public int result()
      Returns:
      the value of the result field.
    • buffer

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

      public long offset()
      Returns:
      the value of the offset field.
    • bytes_requested

      public long bytes_requested()
      Returns:
      the value of the bytes_requested field.
    • bytes_transferred

      public long bytes_transferred()
      Returns:
      the value of the bytes_transferred field.
    • userdata

      public long userdata()
      Returns:
      the value of the userdata field.