MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / loadRom

Function loadRom

src/decoder/plugins/SidplayDecoderPlugin.cxx:68–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66static constexpr unsigned rom_size = 8192;
67
68static void loadRom(const Path rom_path, uint8_t *dump)
69{
70 FileReader romDump(rom_path);
71 if (romDump.Read(std::as_writable_bytes(std::span{dump, rom_size})) != rom_size)
72 throw FmtRuntimeError("Could not load rom dump {:?}", rom_path);
73}
74
75/**
76 * Throws on error.

Callers 1

SidplayGlobalMethod · 0.85

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected