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

Function write_bits

arch/c64/encoder.cc:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31static void write_bits(
32 std::vector<bool>& bits, unsigned& cursor, const std::vector<bool>& src)
33{
34 for (bool bit : src) // Range-based for loop
35 {
36 if (cursor < bits.size())
37 bits[cursor++] = bit;
38 }
39}
40
41static void write_bits(
42 std::vector<bool>& bits, unsigned& cursor, uint64_t data, int width)

Callers 1

writeSectorMethod · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected