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

Function toBytes

lib/core/bytes.cc:258–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258Bytes toBytes(std::vector<bool>::const_iterator start,
259 std::vector<bool>::const_iterator end)
260{
261 Bytes bytes;
262 ByteWriter bw(bytes);
263
264 BitWriter bitw(bw);
265 while (start != end)
266 bitw.push(*start++, 1);
267 bitw.flush();
268
269 return bytes;
270}
271
272Bytes Bytes::swab() const
273{

Callers 1

toByteFunction · 0.70

Calls 2

flushMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected