mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-22 01:33:23 -10:00
rzip_seek_read() copies out of the span decoded around a read. A reader that only copies the bytes on again - a disc sector on its way to the drive's buffer - can have them where they are: rzip_seek_view() gives a pointer into the span, good until the next call on the index, or says there is none when the bytes lie across two spans. A decoded 2352-byte sector costs 28 ns handed over this way against 237 ns copied out. The sample checks views from everywhere against a whole extraction, and that most reads get one.