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

Stream like access functions for Banked Memory. More...

#include "bmem.h"
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
+ Include dependency graph for bmem_rd.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool bmem_is_opened (void)
 MSX Tests whether Banked Memory accessor is opened or not.
 
void bmem_open (bmemptr_t loc)
 MSX Open Banked Memory accessor.
 
void bmem_close (void)
 MSX Close Banked Memory accessor.
 
size_t bmem_avail (void)
 Return the size of remaining bytes in the current segment.
 
void bmem_ensure (void)
 Ensure the internal pointer points the current position.
 
const uint8_t * bmem_ptr (void)
 Get the internal pointer value of Banked Memory accessor.
 
void bmem_skip (size_t len)
 Advance the current position of Banked Memory accessor.
 
void bmem_next_segment (void)
 Switch to next segment.
 
void bmem_read_chunk (uint8_t *dst, size_t len)
 Read a chunk from Banked Memory.
 
uint8_t bmem_read_byte (void)
 Read an octet from Banked Memory.
 

Detailed Description

Stream like access functions for Banked Memory.

Definition in file bmem_rd.h.