Class spng_bkgd.Buffer

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

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

    • Buffer

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

    • gray

      public short gray()
      Returns:
      the value of the gray field.
    • 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.
    • plte_index

      public short plte_index()
      Returns:
      the value of the plte_index field.
    • gray

      public spng_bkgd.Buffer gray(short value)
      Sets the specified value to the gray field.
    • red

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

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

      public spng_bkgd.Buffer blue(short value)
      Sets the specified value to the blue field.
    • plte_index

      public spng_bkgd.Buffer plte_index(short value)
      Sets the specified value to the plte_index field.