Package org.lwjgl.stb

Class STBVorbisComment.Buffer

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

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

    • Buffer

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

    • 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.
    • comment_list_length

      public int comment_list_length()
      Returns:
      the value of the comment_list_length field.
    • comment_list

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