coastline 0.0.4
Loading...
Searching...
No Matches
disctrackreader.h
Go to the documentation of this file.
1#pragma once
2
3#include <fstream>
4#include <span>
5
6#include "importer.h"
7
8namespace coastline {
9
12public:
19 explicit DiscTrackReader(const CueTrack &track);
20
32
33private:
36 std::uint64_t m_count = 0;
37 std::uint32_t m_stride = 0;
38 std::ifstream m_file;
40 bool m_valid = false;
41};
42
43} // namespace coastline
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.
Definition assetimport.h:11
One disc track with stored sector sizes and logical track boundaries.
Definition importer.h:93