MCPcopy Create free account
hub / github.com/PiSCSI/piscsi / WriteSector

Method WriteSector

cpp/devices/disk_cache.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60bool 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//

Callers 1

WriteMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected