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

Function getBlock

tests/cpmfs.cc:120–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120static Bytes getBlock(
121 const std::shared_ptr<SectorInterface>& sectors, int block, int length)
122{
123 Bytes bytes;
124 ByteWriter bw(bytes);
125
126 for (int i = 0; i < (length + 127) / 128; i++)
127 {
128 auto sector = sectors->get(block, 0, i);
129 bw.append(sector->data);
130 }
131
132 return bytes;
133}
134
135static void testPartialExtent()
136{

Callers 5

testPutGetFunction · 0.85
testPutBigFileFunction · 0.85
testDeleteFunction · 0.85
testMoveFunction · 0.85
testPutMetadataFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected