Class VkPerformanceValueDataINTEL.Buffer

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

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

    • Buffer

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

    • value32

      public int value32()
      Returns:
      the value of the value32 field.
    • value64

      public long value64()
      Returns:
      the value of the value64 field.
    • valueFloat

      public float valueFloat()
      Returns:
      the value of the valueFloat field.
    • valueBool

      public boolean valueBool()
      Returns:
      the value of the valueBool field.
    • valueString

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

      public String valueStringString()
      Returns:
      the null-terminated string pointed to by the valueString field.
    • value32

      public VkPerformanceValueDataINTEL.Buffer value32(int value)
      Sets the specified value to the value32 field.
    • value64

      public VkPerformanceValueDataINTEL.Buffer value64(long value)
      Sets the specified value to the value64 field.
    • valueFloat

      public VkPerformanceValueDataINTEL.Buffer valueFloat(float value)
      Sets the specified value to the valueFloat field.
    • valueBool

      public VkPerformanceValueDataINTEL.Buffer valueBool(boolean value)
      Sets the specified value to the valueBool field.
    • valueString

      public VkPerformanceValueDataINTEL.Buffer valueString(ByteBuffer value)
      Sets the address of the specified encoded string to the valueString field.