Package org.lwjgl.util.opus
Class OpusPictureTag.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<OpusPictureTag,OpusPictureTag.Buffer>
-
- org.lwjgl.util.opus.OpusPictureTag.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<OpusPictureTag>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- OpusPictureTag
public static class OpusPictureTag.Buffer extends org.lwjgl.system.StructBuffer<OpusPictureTag,OpusPictureTag.Buffer> implements org.lwjgl.system.NativeResource
An array ofOpusPictureTagstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcolors()java.nio.ByteBufferdata()intdata_length()intdepth()java.nio.ByteBufferdescription()java.lang.StringdescriptionString()intformat()intheight()java.nio.ByteBuffermime_type(int capacity)inttype()intwidth()
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newOpusPictureTag.Bufferinstance 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 byOpusPictureTag.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 Detail
-
type
public int type()
- Returns:
- the value of the
OpusPictureTag.type()field.
-
mime_type
public java.nio.ByteBuffer mime_type(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
ByteBufferview of the data pointed to by theOpusPictureTag.mime_type(int)field.
-
description
public java.nio.ByteBuffer description()
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by theOpusPictureTag.description()field.
-
descriptionString
public java.lang.String descriptionString()
- Returns:
- the null-terminated string pointed to by the
OpusPictureTag.description()field.
-
width
public int width()
- Returns:
- the value of the
OpusPictureTag.width()field.
-
height
public int height()
- Returns:
- the value of the
OpusPictureTag.height()field.
-
depth
public int depth()
- Returns:
- the value of the
OpusPictureTag.depth()field.
-
colors
public int colors()
- Returns:
- the value of the
OpusPictureTag.colors()field.
-
data_length
public int data_length()
- Returns:
- the value of the
OpusPictureTag.data_length()field.
-
data
public java.nio.ByteBuffer data()
- Returns:
- a
ByteBufferview of the data pointed to by theOpusPictureTag.data()field.
-
format
public int format()
- Returns:
- the value of the
OpusPictureTag.format()field.
-
-