Class SPVParsedInstruction.Buffer

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

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

    • Buffer

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

    • words

      public IntBuffer words()
      Returns:
      a IntBuffer view of the data pointed to by the words field.
    • num_words

      public short num_words()
      Returns:
      the value of the num_words field.
    • opcode

      public short opcode()
      Returns:
      the value of the opcode field.
    • ext_inst_type

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

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

      public int result_id()
      Returns:
      the value of the result_id field.
    • operands

      public SPVParsedOperand.Buffer operands()
      Returns:
      a SPVParsedOperand.Buffer view of the struct array pointed to by the operands field.
    • num_operands

      public short num_operands()
      Returns:
      the value of the num_operands field.
    • words

      public SPVParsedInstruction.Buffer words(IntBuffer value)
      Sets the address of the specified IntBuffer to the words field.
    • opcode

      public SPVParsedInstruction.Buffer opcode(short value)
      Sets the specified value to the opcode field.
    • ext_inst_type

      public SPVParsedInstruction.Buffer ext_inst_type(int value)
      Sets the specified value to the ext_inst_type field.
    • type_id

      public SPVParsedInstruction.Buffer type_id(int value)
      Sets the specified value to the type_id field.
    • result_id

      public SPVParsedInstruction.Buffer result_id(int value)
      Sets the specified value to the result_id field.
    • operands

      Sets the address of the specified SPVParsedOperand.Buffer to the operands field.