Class spng_splt_entry.Buffer

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

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

    • Buffer

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

    • red

      public short red()
      Returns:
      the value of the red field.
    • green

      public short green()
      Returns:
      the value of the green field.
    • blue

      public short blue()
      Returns:
      the value of the blue field.
    • alpha

      public short alpha()
      Returns:
      the value of the alpha field.
    • frequency

      public short frequency()
      Returns:
      the value of the frequency field.
    • red

      public spng_splt_entry.Buffer red(short value)
      Sets the specified value to the red field.
    • green

      public spng_splt_entry.Buffer green(short value)
      Sets the specified value to the green field.
    • blue

      public spng_splt_entry.Buffer blue(short value)
      Sets the specified value to the blue field.
    • alpha

      public spng_splt_entry.Buffer alpha(short value)
      Sets the specified value to the alpha field.
    • frequency

      public spng_splt_entry.Buffer frequency(short value)
      Sets the specified value to the frequency field.