Class spng_ihdr.Buffer

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

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

    • Buffer

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

    • width

      public int width()
      Returns:
      the value of the width field.
    • height

      public int height()
      Returns:
      the value of the height field.
    • bit_depth

      public byte bit_depth()
      Returns:
      the value of the bit_depth field.
    • color_type

      public byte color_type()
      Returns:
      the value of the color_type field.
    • compression_method

      public byte compression_method()
      Returns:
      the value of the compression_method field.
    • filter_method

      public byte filter_method()
      Returns:
      the value of the filter_method field.
    • interlace_method

      public byte interlace_method()
      Returns:
      the value of the interlace_method field.
    • width

      public spng_ihdr.Buffer width(int value)
      Sets the specified value to the width field.
    • height

      public spng_ihdr.Buffer height(int value)
      Sets the specified value to the height field.
    • bit_depth

      public spng_ihdr.Buffer bit_depth(byte value)
      Sets the specified value to the bit_depth field.
    • color_type

      public spng_ihdr.Buffer color_type(byte value)
      Sets the specified value to the color_type field.
    • compression_method

      public spng_ihdr.Buffer compression_method(byte value)
      Sets the specified value to the compression_method field.
    • filter_method

      public spng_ihdr.Buffer filter_method(byte value)
      Sets the specified value to the filter_method field.
    • interlace_method

      public spng_ihdr.Buffer interlace_method(byte value)
      Sets the specified value to the interlace_method field.