|
coastline 0.0.4
|
Read bounded sectors across the ordered parts of a disc track. More...
#include <disctrackreader.h>
Public Member Functions | |
| DiscTrackReader (const CueTrack &track) | |
| Validate track extents against their files without loading their contents. | |
| bool | Read (std::uint64_t sector, std::uint32_t count, std::span< std::uint8_t > output) |
| Read complete stored sectors, including any headers and subchannel bytes. | |
Read bounded sectors across the ordered parts of a disc track.
|
explicit |
Validate track extents against their files without loading their contents.
Invalid tracks cause every subsequent Read() call to fail.
| track | Track with sector stride, total length, and optional split-file extents. |
| bool coastline::DiscTrackReader::Read | ( | std::uint64_t | sector, |
| std::uint32_t | count, | ||
| std::span< std::uint8_t > | output ) |
Read complete stored sectors, including any headers and subchannel bytes.
| sector | First sector relative to the start of the track, excluding its pregap. |
| count | Number of sectors to read. |
| output | Destination of exactly count times the stored sector stride bytes. |