MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / readAllocationTable

Function readAllocationTable

tools/brother120tool.cc:248–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248void readAllocationTable()
249{
250 for (int sector = 1; sector != SECTOR_COUNT; sector++)
251 {
252 file.seekg((sector - 1) * 2 + 0x800, std::ifstream::beg);
253 Bytes buffer(2);
254 file.read((char*)&buffer[0], buffer.size());
255
256 uint16_t nextSector = buffer.reader().read_be16();
257 allocationTable[sector] = nextSector;
258 }
259}
260
261void writeAllocationTable()
262{

Callers 1

doExtractFunction · 0.85

Calls 4

read_be16Method · 0.80
readerMethod · 0.80
readMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected