FILE stream resources.
The function prototypes are basically the same as for the stdio functions fread(), fseek(), ftell(), and fclose(). The
differences are that the FILE * arguments have been replaced with a void *, which is to be used as a pointer to whatever internal data
these functions might need, that seek and tell take and return 64-bit offsets, and that seek must return -1 if
the stream is unseekable.
struct OpusFileCallbacks {
op_read_func read;
op_seek_func seek;
op_tell_func tell;
op_close_func close;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | OpusFileCallbacks.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CLOSE
The struct member offsets. |
| public static final int | READ
The struct member offsets. |
| public static final int | SEEK
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TELL
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | OpusFileCallbacks(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static OpusFileCallbacks | |
| public static OpusFileCallbacks. | calloc(int
the buffer capacity capacity)Returns a new |
| public static OpusFileCallbacks | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OpusFileCallbacks. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public OPCloseFunc | |
| public OpusFileCallbacks | |
| protected OpusFileCallbacks | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static OpusFileCallbacks | |
| public static OpusFileCallbacks | |
| public static OpusFileCallbacks. | create(int
the buffer capacity capacity)Returns a new |
| public static OpusFileCallbacks. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static OpusFileCallbacks | |
| public static OpusFileCallbacks. | |
| public static OpusFileCallbacks | |
| public static OpusFileCallbacks. | malloc(int
the buffer capacity capacity)Returns a new |
| public static OpusFileCallbacks | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OpusFileCallbacks. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static OPCloseFunc | |
| public static void | |
| public static OPReadFunc | |
| public static void | |
| public static OPSeekFunc | |
| public static void | |
| public static OPTellFunc | |
| public static void | |
| public OPReadFunc | |
| public OpusFileCallbacks | |
| public OPSeekFunc | |
| public OpusFileCallbacks | |
| public OpusFileCallbacks | set(OPReadFuncI read, OPSeekFuncI seek, OPTellFuncI tell, OPCloseFuncI close$)
Initializes this struct with the specified values. |
| public OpusFileCallbacks | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public OPTellFunc | |
| public OpusFileCallbacks | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| CLOSE | back to summary |
|---|---|
| public static final int CLOSE The struct member offsets. | |
| READ | back to summary |
|---|---|
| public static final int READ The struct member offsets. | |
| SEEK | back to summary |
|---|---|
| public static final int SEEK The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TELL | back to summary |
|---|---|
| public static final int TELL The struct member offsets. | |
| OpusFileCallbacks | back to summary |
|---|---|
| protected OpusFileCallbacks(long address, ByteBuffer container) | |
| OpusFileCallbacks | back to summary |
|---|---|
| public OpusFileCallbacks(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static OpusFileCallbacks calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static OpusFileCallbacks. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static OpusFileCallbacks calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static OpusFileCallbacks. Returns a new
| |
| close$ | back to summary |
|---|---|
| public OPCloseFunc close$() used to close the stream when the decoder is freed. This may be
| |
| close$ | back to summary |
|---|---|
| public OpusFileCallbacks close$(OPCloseFuncI value) Sets the specified value to the | |
| create | back to summary |
|---|---|
| protected OpusFileCallbacks create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static OpusFileCallbacks create() Returns a new | |
| create | back to summary |
|---|---|
| public static OpusFileCallbacks create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static OpusFileCallbacks. Returns a new
| |
| create | back to summary |
|---|---|
| public static OpusFileCallbacks. Create a
| |
| createSafe | back to summary |
|---|---|
| public static OpusFileCallbacks createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static OpusFileCallbacks. Like
| |
| malloc | back to summary |
|---|---|
| public static OpusFileCallbacks malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static OpusFileCallbacks. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static OpusFileCallbacks malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static OpusFileCallbacks. Returns a new
| |
| nclose$ | back to summary |
|---|---|
| public static OPCloseFunc nclose$(long struct) Unsafe version of
| |
| nclose$ | back to summary |
|---|---|
| public static void nclose$(long struct, OPCloseFuncI value) Unsafe version of | |
| nread | back to summary |
|---|---|
| public static OPReadFunc nread(long struct) Unsafe version of | |
| nread | back to summary |
|---|---|
| public static void nread(long struct, OPReadFuncI value) Unsafe version of | |
| nseek | back to summary |
|---|---|
| public static OPSeekFunc nseek(long struct) Unsafe version of
| |
| nseek | back to summary |
|---|---|
| public static void nseek(long struct, OPSeekFuncI value) Unsafe version of | |
| ntell | back to summary |
|---|---|
| public static OPTellFunc ntell(long struct) Unsafe version of
| |
| ntell | back to summary |
|---|---|
| public static void ntell(long struct, OPTellFuncI value) Unsafe version of | |
| read | back to summary |
|---|---|
| public OPReadFunc read() used to read data from the stream. This must not be
| |
| read | back to summary |
|---|---|
| public OpusFileCallbacks read(OPReadFuncI value) Sets the specified value to the | |
| seek | back to summary |
|---|---|
| public OPSeekFunc seek() used to seek in the stream. This may be
| |
| seek | back to summary |
|---|---|
| public OpusFileCallbacks seek(OPSeekFuncI value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public OpusFileCallbacks set(OPReadFuncI read, OPSeekFuncI seek, OPTellFuncI tell, OPCloseFuncI close$) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public OpusFileCallbacks set(OpusFileCallbacks src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| tell | back to summary |
|---|---|
| public OPTellFunc tell() used to return the current read position in the stream. This may be
| |
| tell | back to summary |
|---|---|
| public OpusFileCallbacks tell(OPTellFuncI value) Sets the specified value to the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
OpusFileCallbacks structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final OpusFileCallbacks |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public OPCloseFunc | |
| public OpusFileCallbacks. | |
| protected OpusFileCallbacks | |
| public OPReadFunc | |
| public OpusFileCallbacks. | |
| public OPSeekFunc | |
| public OpusFileCallbacks. | |
| protected OpusFileCallbacks. | |
| public OPTellFunc | |
| public OpusFileCallbacks. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final OpusFileCallbacks ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new 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 The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| close$ | back to summary |
|---|---|
public OPCloseFunc close$()
| |
| close$ | back to summary |
|---|---|
| public OpusFileCallbacks. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected OpusFileCallbacks getElementFactory() Implements abstract org.
| |
| read | back to summary |
|---|---|
public OPReadFunc read()
| |
| read | back to summary |
|---|---|
| public OpusFileCallbacks. Sets the specified value to the | |
| seek | back to summary |
|---|---|
public OPSeekFunc seek()
| |
| seek | back to summary |
|---|---|
| public OpusFileCallbacks. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected OpusFileCallbacks. Implements abstract org.
| |
| tell | back to summary |
|---|---|
public OPTellFunc tell()
| |
| tell | back to summary |
|---|---|
| public OpusFileCallbacks. Sets the specified value to the | |