Class SPVParsedOperand.Buffer

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

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

    • Buffer

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

    • offset

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

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

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

      public int number_kind()
      Returns:
      the value of the number_kind field.
    • number_bit_width

      public int number_bit_width()
      Returns:
      the value of the number_bit_width field.
    • fp_encoding

      public int fp_encoding()
      Returns:
      the value of the fp_encoding field.
    • offset

      public SPVParsedOperand.Buffer offset(short value)
      Sets the specified value to the offset field.
    • num_words

      public SPVParsedOperand.Buffer num_words(short value)
      Sets the specified value to the num_words field.
    • type

      public SPVParsedOperand.Buffer type(int value)
      Sets the specified value to the type field.
    • number_kind

      public SPVParsedOperand.Buffer number_kind(int value)
      Sets the specified value to the number_kind field.
    • number_bit_width

      public SPVParsedOperand.Buffer number_bit_width(int value)
      Sets the specified value to the number_bit_width field.
    • fp_encoding

      public SPVParsedOperand.Buffer fp_encoding(int value)
      Sets the specified value to the fp_encoding field.