Class OpusTags.Buffer

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

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

    • Buffer

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

    • user_comments

      public PointerBuffer user_comments()
      Returns:
      a PointerBuffer view of the data pointed to by the user_comments field.
    • comment_lengths

      public IntBuffer comment_lengths()
      Returns:
      a IntBuffer view of the data pointed to by the comment_lengths field.
    • comments

      public int comments()
      Returns:
      the value of the comments field.
    • vendor

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

      public String vendorString()
      Returns:
      the null-terminated string pointed to by the vendor field.