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

Function setBlock

tests/cpmfs.cc:113–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113static void setBlock(
114 const std::shared_ptr<SectorInterface>& sectors, int block, Bytes data)
115{
116 for (int i = 0; i < 8; i++)
117 sectors->put(block, 0, i)->data = data.slice(i * 256, 256);
118}
119
120static Bytes getBlock(
121 const std::shared_ptr<SectorInterface>& sectors, int block, int length)

Callers 3

testPartialExtentFunction · 0.85
testLogicalExtentsFunction · 0.85
testBitmapFunction · 0.85

Calls 2

sliceMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected