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

Function write_bits

arch/amiga/encoder.cc:20–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20static void write_bits(
21 std::vector<bool>& bits, unsigned& cursor, const std::vector<bool>& src)
22{
23 for (bool bit : src)
24 {
25 if (cursor < bits.size())
26 lastBit = bits[cursor++] = bit;
27 }
28}
29
30static void write_bits(
31 std::vector<bool>& bits, unsigned& cursor, uint64_t data, int width)

Callers 2

write_sectorFunction · 0.70
writeSectorMethod · 0.50

Calls 3

sizeMethod · 0.45
eofMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected