Package org.lwjgl.stb
Class STBVorbisComment
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.stb.STBVorbisComment
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class STBVorbisComment extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct stb_vorbis_comment { char * vendor; int comment_list_length; char ** comment_list; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSTBVorbisComment.BufferAn array ofSTBVorbisCommentstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOMMENT_LIST
COMMENT_LIST_LENGTHThe struct member offsets.static intSIZEOFThe struct size in bytes.static intVENDORThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description STBVorbisComment(java.nio.ByteBuffer container)Creates aSTBVorbisCommentinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static STBVorbisCommentcalloc()Returns a newSTBVorbisCommentinstance allocated withmemCalloc.static STBVorbisComment.Buffercalloc(int capacity)Returns a newSTBVorbisComment.Bufferinstance allocated withmemCalloc.static STBVorbisComment.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSTBVorbisComment.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static STBVorbisCommentcalloc(org.lwjgl.system.MemoryStack stack)Returns a newSTBVorbisCommentinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.org.lwjgl.PointerBuffercomment_list()intcomment_list_length()static STBVorbisCommentcreate()Returns a newSTBVorbisCommentinstance allocated withBufferUtils.static STBVorbisComment.Buffercreate(int capacity)Returns a newSTBVorbisComment.Bufferinstance allocated withBufferUtils.static STBVorbisCommentcreate(long address)Returns a newSTBVorbisCommentinstance for the specified memory address.static STBVorbisComment.Buffercreate(long address, int capacity)Create aSTBVorbisComment.Bufferinstance at the specified memory.static STBVorbisCommentcreateSafe(long address)static STBVorbisComment.BuffercreateSafe(long address, int capacity)static STBVorbisCommentmalloc()Returns a newSTBVorbisCommentinstance allocated withmemAlloc.static STBVorbisComment.Buffermalloc(int capacity)Returns a newSTBVorbisComment.Bufferinstance allocated withmemAlloc.static STBVorbisComment.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSTBVorbisComment.Bufferinstance allocated on the specifiedMemoryStack.static STBVorbisCommentmalloc(org.lwjgl.system.MemoryStack stack)Returns a newSTBVorbisCommentinstance allocated on the specifiedMemoryStack.static org.lwjgl.PointerBufferncomment_list(long struct)Unsafe version ofcomment_list.static intncomment_list_length(long struct)Unsafe version ofcomment_list_length().static java.nio.ByteBuffernvendor(long struct)Unsafe version ofvendor().static java.lang.StringnvendorString(long struct)Unsafe version ofvendorString().intsizeof()java.nio.ByteBuffervendor()java.lang.StringvendorString()
-
-
-
Constructor Detail
-
STBVorbisComment
public STBVorbisComment(java.nio.ByteBuffer container)
Creates aSTBVorbisCommentinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
vendor
public java.nio.ByteBuffer vendor()
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thevendorfield.
-
vendorString
public java.lang.String vendorString()
- Returns:
- the null-terminated string pointed to by the
vendorfield.
-
comment_list_length
public int comment_list_length()
- Returns:
- the value of the
comment_list_lengthfield.
-
comment_list
public org.lwjgl.PointerBuffer comment_list()
- Returns:
- a
PointerBufferview of the data pointed to by thecomment_listfield.
-
malloc
public static STBVorbisComment malloc()
Returns a newSTBVorbisCommentinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static STBVorbisComment calloc()
Returns a newSTBVorbisCommentinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static STBVorbisComment create()
Returns a newSTBVorbisCommentinstance allocated withBufferUtils.
-
create
public static STBVorbisComment create(long address)
Returns a newSTBVorbisCommentinstance for the specified memory address.
-
createSafe
@Nullable public static STBVorbisComment createSafe(long address)
-
malloc
public static STBVorbisComment.Buffer malloc(int capacity)
Returns a newSTBVorbisComment.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static STBVorbisComment.Buffer calloc(int capacity)
Returns a newSTBVorbisComment.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static STBVorbisComment.Buffer create(int capacity)
Returns a newSTBVorbisComment.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static STBVorbisComment.Buffer create(long address, int capacity)
Create aSTBVorbisComment.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static STBVorbisComment.Buffer createSafe(long address, int capacity)
-
malloc
public static STBVorbisComment malloc(org.lwjgl.system.MemoryStack stack)
Returns a newSTBVorbisCommentinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static STBVorbisComment calloc(org.lwjgl.system.MemoryStack stack)
Returns a newSTBVorbisCommentinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static STBVorbisComment.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSTBVorbisComment.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static STBVorbisComment.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSTBVorbisComment.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nvendor
public static java.nio.ByteBuffer nvendor(long struct)
Unsafe version ofvendor().
-
nvendorString
public static java.lang.String nvendorString(long struct)
Unsafe version ofvendorString().
-
ncomment_list_length
public static int ncomment_list_length(long struct)
Unsafe version ofcomment_list_length().
-
ncomment_list
public static org.lwjgl.PointerBuffer ncomment_list(long struct)
Unsafe version ofcomment_list.
-
-