maug
Quick and dirty C mini-augmentation library.
Loading...
Searching...
No Matches
MFILE_CADDY Struct Reference
Collaboration diagram for MFILE_CADDY:

Data Fields

uint8_t type
 The RetroFile Types flag describing this file.
 
union MFILE_HANDLE h
 The physical handle or pointer to access the file by.
 
off_t sz
 
off_t last_read
 
off_t mem_cursor
 Current position if its type is MFILE_CADDY_TYPE_MEM_BUFFER.
 
uint8_t * mem_buffer
 Locked pointer for MFILE_HANDLE::mem.
 
uint8_t flags
 
mfile_has_bytes_t has_bytes
 
mfile_cursor_t cursor
 
mfile_read_byte_t read_byte
 
mfile_read_block_t read_block
 
mfile_seek_t seek
 
mfile_read_int_t read_int
 
mfile_read_line_t read_line
 
mfile_printf_t printf
 
mfile_vprintf_t vprintf
 
mfile_write_block_t write_block
 

Related Symbols

(Note that these are not member symbols.)

typedef MERROR_RETVAL(* mfile_vprintf_t) (struct MFILE_CADDY *p_file, uint8_t flags, const char *fmt, va_list args)
 Callback to printf the given format string, replacing tokens from the providied pre-initialized list of args.
 
MERROR_RETVAL mfile_mem_write_block (struct MFILE_CADDY *p_f, const uint8_t *buf, size_t buf_sz)
 Insert provided buffer into the given file.
 

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