Class SpvcReflectedResource.Buffer

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

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

    • Buffer

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

    • id

      public int id()
      Returns:
      the value of the id field.
    • base_type_id

      public int base_type_id()
      Returns:
      the value of the base_type_id field.
    • type_id

      public int type_id()
      Returns:
      the value of the type_id field.
    • name

      public ByteBuffer name()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the name field.
    • nameString

      public String nameString()
      Returns:
      the null-terminated string pointed to by the name field.
    • id

      public SpvcReflectedResource.Buffer id(int value)
      Sets the specified value to the id field.
    • base_type_id

      public SpvcReflectedResource.Buffer base_type_id(int value)
      Sets the specified value to the base_type_id field.
    • type_id

      public SpvcReflectedResource.Buffer type_id(int value)
      Sets the specified value to the type_id field.
    • name

      Sets the address of the specified encoded string to the name field.