mirror of
https://github.com/openXC7/prjxray.git
synced 2026-09-01 10:27:07 +02:00
MemoryMappedFile's data() method returns a void* as it has no idea what type the contents are. Viewing it as bytes is a very common operation so add a convience method that wraps the pointer in a Span<uint8_t>. Signed-off-by: Rick Altherr <[email protected]>