| 58 | } |
| 59 | |
| 60 | bool DiskCache::WriteSector(span<const uint8_t> buf, uint64_t block) |
| 61 | { |
| 62 | shared_ptr<DiskTrack> disktrk = GetTrack(block); |
| 63 | if (disktrk == nullptr) { |
| 64 | return false; |
| 65 | } |
| 66 | |
| 67 | // Write the data to the cache |
| 68 | return disktrk->WriteSector(buf, block & 0xff); |
| 69 | } |
| 70 | |
| 71 | //--------------------------------------------------------------------------- |
| 72 | // |