libmsx
C library for MSX
Loading...
Searching...
No Matches

Open whole or part of memory image as stream. More...

+ Collaboration diagram for Open stream.:

Functions

void mfopen_mem (MemFile *mf, uint8_t *p, size_t size)
 Open memory image in ROM/RAM as stream.
 
void mfopen_bmem (MemFile *mf, bmemptr_t p, uint32_t size)
 Open memory image in banked memory (MegaROM) as stream.
 
void mfslice (MemFile *dst, const MemFile *src, long size)
 Open a new stream with the specified size range from the current position.
 

Detailed Description

Open whole or part of memory image as stream.

Function Documentation

◆ mfopen_mem()

void mfopen_mem ( MemFile mf,
uint8_t *  p,
size_t  size 
)

Open memory image in ROM/RAM as stream.

Parameters
mfPointer to stream pointer to be initialized.
pLocation of the memory image.
sizeSize in bytes.

◆ mfopen_bmem()

void mfopen_bmem ( MemFile mf,
bmemptr_t  p,
uint32_t  size 
)

Open memory image in banked memory (MegaROM) as stream.

Parameters
mfPointer to stream pointer to be initialized.
pLocation of the memory image.
sizeSize in bytes.
See also
Banked Memory interface for MegaROM.
Banked Memory as a storage of Named Resources.

◆ mfslice()

void mfslice ( MemFile dst,
const MemFile src,
long  size 
)

Open a new stream with the specified size range from the current position.

Parameters
dstPointer to stream pointer to be initialized.
srcPointer to opened stream pointer.
sizeSize in bytes. (size of the range)