pub struct RamCard { /* private fields */ }Expand description
A 128 KiB card held entirely in memory.
The struct owns the full image inline (128 KiB), so place it in a static
or box it on the heap rather than passing it around by value on the small
PS1 stack.
Implementations§
Source§impl RamCard
impl RamCard
Sourcepub const fn new() -> Self
pub const fn new() -> Self
A blank (all-zero, unformatted) card. Call crate::Card::format to lay
down a valid directory.
Sourcepub fn from_image(image: &[u8]) -> Result<Self>
pub fn from_image(image: &[u8]) -> Result<Self>
Build from an existing 128 KiB image (e.g. a .mcd file loaded on a host).