Class OpusPictureTag.Buffer

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

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

    • Buffer

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

    • type

      public int type()
      Returns:
      the value of the type field.
    • mime_type

      public ByteBuffer mime_type(int capacity)
      Returns:
      a ByteBuffer view of the data pointed to by the mime_type field.
    • description

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

      public String descriptionString()
      Returns:
      the null-terminated string pointed to by the description field.
    • width

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

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

      public int depth()
      Returns:
      the value of the depth field.
    • colors

      public int colors()
      Returns:
      the value of the colors field.
    • data_length

      public int data_length()
      Returns:
      the value of the data_length field.
    • data

      public ByteBuffer data()
      Returns:
      a ByteBuffer view of the data pointed to by the data field.
    • format

      public int format()
      Returns:
      the value of the format field.