Class GLFWGammaRamp.Buffer

All Implemented Interfaces:
Addressable
Enclosing class:
GLFWGammaRamp

public static final class GLFWGammaRamp.Buffer extends GLFWGammaRamp
A buffer of GLFWGammaRamp.
  • Constructor Details

    • Buffer

      public Buffer(MemorySegment segment, long elementCount)
      Creates GLFWGammaRamp.Buffer with the given segment.
      Parameters:
      segment - the memory segment
      elementCount - the element count
  • Method Details

    • estimateCount

      public long estimateCount()
      Description copied from class: GroupType
      Estimates the element count of this group type buffer.
      Overrides:
      estimateCount in class GroupType
      Returns:
      the estimated element count of the group type buffer
    • asSlice

      public GLFWGammaRamp asSlice(long index)
      Creates a slice of GLFWGammaRamp.
      Parameters:
      index - the index of the struct buffer
      Returns:
      the slice of GLFWGammaRamp
    • asSlice

      public GLFWGammaRamp.Buffer asSlice(long index, long count)
      Creates a slice of GLFWGammaRamp.
      Parameters:
      index - the index of the struct buffer
      count - the count
      Returns:
      the slice of GLFWGammaRamp
    • redAt

      public MemorySegment redAt(long index)
      Returns red at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      red at the given index
    • redAt

      public GLFWGammaRamp.Buffer redAt(long index, MemorySegment value)
      Sets red with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • greenAt

      public MemorySegment greenAt(long index)
      Returns green at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      green at the given index
    • greenAt

      public GLFWGammaRamp.Buffer greenAt(long index, MemorySegment value)
      Sets green with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • blueAt

      public MemorySegment blueAt(long index)
      Returns blue at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      blue at the given index
    • blueAt

      public GLFWGammaRamp.Buffer blueAt(long index, MemorySegment value)
      Sets blue with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • sizeAt

      public int sizeAt(long index)
      Returns size at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      size at the given index
    • sizeAt

      public GLFWGammaRamp.Buffer sizeAt(long index, int value)
      Sets size with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this