|
LMMS
|
#include <byte_source.h>
Public Attributes | |
| SerdSource | read_func |
| Read function (e.g. fread). | |
| SerdStreamErrorFunc | error_func |
| Error function (e.g. ferror). | |
| void * | stream |
| Stream (e.g. FILE). | |
| size_t | page_size |
| Number of bytes to read at a time. | |
| size_t | buf_size |
| Number of bytes in file_buf. | |
| Cursor | cur |
| Cursor for error reporting. | |
| uint8_t * | file_buf |
| Buffer iff reading pages from a file. | |
| const uint8_t * | read_buf |
| Pointer to file_buf or read_byte. | |
| size_t | read_head |
| Offset into read_buf. | |
| uint8_t | read_byte |
| 1-byte 'buffer' used when not paging | |
| bool | from_stream |
| True iff reading from stream. | |
| bool | prepared |
| True iff prepared for reading. | |
| bool | eof |
| True iff end of file reached. | |
| size_t SerdByteSource::buf_size |
Number of bytes in file_buf.
| bool SerdByteSource::eof |
True iff end of file reached.
| SerdStreamErrorFunc SerdByteSource::error_func |
Error function (e.g. ferror).
| uint8_t* SerdByteSource::file_buf |
Buffer iff reading pages from a file.
| bool SerdByteSource::from_stream |
True iff reading from stream.
| size_t SerdByteSource::page_size |
Number of bytes to read at a time.
| bool SerdByteSource::prepared |
True iff prepared for reading.
| uint8_t SerdByteSource::read_byte |
1-byte 'buffer' used when not paging
| SerdSource SerdByteSource::read_func |
Read function (e.g. fread).
| size_t SerdByteSource::read_head |
Offset into read_buf.
| void* SerdByteSource::stream |
Stream (e.g. FILE).