LMMS
Loading...
Searching...
No Matches
SerdByteSource Struct Reference

#include <byte_source.h>

Public Attributes

SerdSource read_func
 Read function (e.g. fread).
SerdStreamErrorFunc error_func
 Error function (e.g. ferror).
voidstream
 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_tfile_buf
 Buffer iff reading pages from a file.
const uint8_tread_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.

Member Data Documentation

◆ buf_size

size_t SerdByteSource::buf_size

Number of bytes in file_buf.

◆ cur

Cursor SerdByteSource::cur

Cursor for error reporting.

◆ eof

bool SerdByteSource::eof

True iff end of file reached.

◆ error_func

SerdStreamErrorFunc SerdByteSource::error_func

Error function (e.g. ferror).

◆ file_buf

uint8_t* SerdByteSource::file_buf

Buffer iff reading pages from a file.

◆ from_stream

bool SerdByteSource::from_stream

True iff reading from stream.

◆ page_size

size_t SerdByteSource::page_size

Number of bytes to read at a time.

◆ prepared

bool SerdByteSource::prepared

True iff prepared for reading.

◆ read_buf

const uint8_t* SerdByteSource::read_buf

Pointer to file_buf or read_byte.

◆ read_byte

uint8_t SerdByteSource::read_byte

1-byte 'buffer' used when not paging

◆ read_func

SerdSource SerdByteSource::read_func

Read function (e.g. fread).

◆ read_head

size_t SerdByteSource::read_head

Offset into read_buf.

◆ stream

void* SerdByteSource::stream

Stream (e.g. FILE).


The documentation for this struct was generated from the following file: