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

Function stripPartialRotation

lib/external/greaseweazle.cc:144–153  ·  view source on GitHub ↗

Left-truncates at the first index mark, so the resulting data as aligned at * the index. */

Source from the content-addressed store, hash-verified

142/* Left-truncates at the first index mark, so the resulting data as aligned at
143 * the index. */
144Bytes stripPartialRotation(const Bytes& fldata)
145{
146 for (unsigned i = 0; i < fldata.size(); i++)
147 {
148 uint8_t b = fldata[i];
149 if (b & F_BIT_INDEX)
150 return fldata.slice(i);
151 }
152 return fldata;
153}

Callers 1

readMethod · 0.85

Calls 2

sliceMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected