1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-09 21:29:53 +00:00
CLK/Storage/Disk/DiskImage.cpp
Thomas Harte b5406b90cd Introduces a new class hierarchy for disk images.
Increasing independence of format-specific stuff and generic caching without mangling them into a common namespace, and allowing in some cases for a decrease in read/write blocking.
2017-09-22 20:28:11 -04:00

17 lines
355 B
C++

//
// DiskImage.cpp
// Clock Signal
//
// Created by Thomas Harte on 21/09/2017.
// Copyright © 2017 Thomas Harte. All rights reserved.
//
#include "DiskImage.hpp"
using namespace Storage::Disk;
int DiskImageHolderBase::get_id_for_track_at_position(unsigned int head, unsigned int position) {
return (int)(position * get_head_count() + head);
}