1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-03-11 04:42:20 +00:00
Files
CLK/Storage/Disk/Encodings/AppleGCR/SegmentParser.hpp
2025-02-28 13:18:48 -05:00

24 lines
532 B
C++

//
// SegmentParser.hpp
// Clock Signal
//
// Created by Thomas Harte on 04/05/2018.
// Copyright 2018 Thomas Harte. All rights reserved.
//
#pragma once
#include "Sector.hpp"
#include "Storage/Disk/Track/PCMSegment.hpp"
#include <map>
namespace Storage::Encodings::AppleGCR {
/*!
Scans @c segment for all included sectors, returning a set that maps from location within
the segment (counted in bits from the beginning) to sector.
*/
std::map<std::size_t, Sector> sectors_from_segment(const Disk::PCMSegment &segment);
}