load_from_callbacks.
struct stbi_io_callbacks {
int (*read) (void *user, char *data, int size);
void (*skip) (void *user, int n);
int (*eof) (void *user);
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | STBIIOCallbacks.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | EOF
The struct member offsets. |
| public static final int | READ
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | SKIP
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | STBIIOCallbacks(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static STBIIOCallbacks | |
| public static STBIIOCallbacks. | calloc(int
the buffer capacity capacity)Returns a new |
| public static STBIIOCallbacks | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static STBIIOCallbacks. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static STBIIOCallbacks | |
| public static STBIIOCallbacks | |
| public static STBIIOCallbacks. | |
| public static STBIIOCallbacks. | |
| protected STBIIOCallbacks | 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 STBIIOCallbacks | |
| public static STBIIOCallbacks | |
| public static STBIIOCallbacks. | create(int
the buffer capacity capacity)Returns a new |
| public static STBIIOCallbacks. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static STBIIOCallbacks | |
| public static STBIIOCallbacks. | |
| public STBIEOFCallback | |
| public STBIIOCallbacks | |
| public static STBIIOCallbacks | |
| public static STBIIOCallbacks. | malloc(int
the buffer capacity capacity)Returns a new |
| public static STBIIOCallbacks | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static STBIIOCallbacks. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static STBIIOCallbacks | |
| public static STBIIOCallbacks | |
| public static STBIIOCallbacks. | |
| public static STBIIOCallbacks. | |
| public static STBIEOFCallback | |
| public static void | |
| public static STBIReadCallback | |
| public static void | |
| public static STBISkipCallback | |
| public static void | |
| public STBIReadCallback | |
| public STBIIOCallbacks | |
| public STBIIOCallbacks | set(STBIReadCallbackI read, STBISkipCallbackI skip, STBIEOFCallbackI eof)
Initializes this struct with the specified values. |
| public STBIIOCallbacks | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public STBISkipCallback | |
| public STBIIOCallbacks | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| EOF | back to summary |
|---|---|
| public static final int EOF The struct member offsets. | |
| READ | back to summary |
|---|---|
| public static final int READ The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| SKIP | back to summary |
|---|---|
| public static final int SKIP The struct member offsets. | |
| STBIIOCallbacks | back to summary |
|---|---|
| protected STBIIOCallbacks(long address, ByteBuffer container) | |
| STBIIOCallbacks | back to summary |
|---|---|
| public STBIIOCallbacks(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static STBIIOCallbacks calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static STBIIOCallbacks. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static STBIIOCallbacks calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static STBIIOCallbacks. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static STBIIOCallbacks callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static STBIIOCallbacks callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static STBIIOCallbacks. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static STBIIOCallbacks. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected STBIIOCallbacks create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static STBIIOCallbacks create() Returns a new | |
| create | back to summary |
|---|---|
| public static STBIIOCallbacks create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static STBIIOCallbacks. Returns a new
| |
| create | back to summary |
|---|---|
| public static STBIIOCallbacks. Create a
| |
| createSafe | back to summary |
|---|---|
| public static STBIIOCallbacks createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static STBIIOCallbacks. Like
| |
| eof | back to summary |
|---|---|
| public STBIEOFCallback eof() returns nonzero if we are at end of file/data
| |
| eof | back to summary |
|---|---|
| public STBIIOCallbacks eof(STBIEOFCallbackI value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static STBIIOCallbacks malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static STBIIOCallbacks. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static STBIIOCallbacks malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static STBIIOCallbacks. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static STBIIOCallbacks mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static STBIIOCallbacks mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static STBIIOCallbacks. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static STBIIOCallbacks. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| neof | back to summary |
|---|---|
| public static STBIEOFCallback neof(long struct) Unsafe version of | |
| neof | back to summary |
|---|---|
| public static void neof(long struct, STBIEOFCallbackI value) Unsafe version of | |
| nread | back to summary |
|---|---|
| public static STBIReadCallback nread(long struct) Unsafe version of | |
| nread | back to summary |
|---|---|
| public static void nread(long struct, STBIReadCallbackI value) Unsafe version of | |
| nskip | back to summary |
|---|---|
| public static STBISkipCallback nskip(long struct) Unsafe version of | |
| nskip | back to summary |
|---|---|
| public static void nskip(long struct, STBISkipCallbackI value) Unsafe version of | |
| read | back to summary |
|---|---|
| public STBIReadCallback read() fill
| |
| read | back to summary |
|---|---|
| public STBIIOCallbacks read(STBIReadCallbackI value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public STBIIOCallbacks set(STBIReadCallbackI read, STBISkipCallbackI skip, STBIEOFCallbackI eof) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public STBIIOCallbacks set(STBIIOCallbacks src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| skip | back to summary |
|---|---|
| public STBISkipCallback skip() skip the next
| |
| skip | back to summary |
|---|---|
| public STBIIOCallbacks skip(STBISkipCallbackI value) Sets the specified value to the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
STBIIOCallbacks structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final STBIIOCallbacks |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public STBIEOFCallback | |
| public STBIIOCallbacks. | |
| protected STBIIOCallbacks | |
| public STBIReadCallback | |
| public STBIIOCallbacks. | |
| protected STBIIOCallbacks. | |
| public STBISkipCallback | |
| public STBIIOCallbacks. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final STBIIOCallbacks 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) | |
| eof | back to summary |
|---|---|
public STBIEOFCallback eof()
| |
| eof | back to summary |
|---|---|
| public STBIIOCallbacks. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected STBIIOCallbacks getElementFactory() Implements abstract org.
| |
| read | back to summary |
|---|---|
public STBIReadCallback read()
| |
| read | back to summary |
|---|---|
| public STBIIOCallbacks. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected STBIIOCallbacks. Implements abstract org.
| |
| skip | back to summary |
|---|---|
public STBISkipCallback skip()
| |
| skip | back to summary |
|---|---|
| public STBIIOCallbacks. Sets the specified value to the | |