15#ifndef MEMFILE_TYPES_H_
16#define MEMFILE_TYPES_H_
42 size_t (*
read)(
struct MemFile * mf,
void * ptr,
size_t size);
uint8_t * ptr
address on the CPU address space.
struct MemPos end
last position (exclusive)
const struct MemFileMethods * methods
function pointers.
uint8_t slot
slot address.
uint8_t segment
ROM / RAM mapper segment number.
struct MemPos base
base position
struct MemPos curr
current position
Internal structure of MemFile type.
Internal structure of mempos_t type.
uint8_t(* read1)(struct MemFile *mf)
void(* seek)(struct MemPos *dst, const struct MemPos *src, long offset)
size_t(* read)(struct MemFile *mf, void *ptr, size_t size)