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

Function write_bits

arch/victor9k/encoder.cc:38–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38static void write_bits(
39 std::vector<bool>& bits, unsigned& cursor, const std::vector<bool>& src)
40{
41 for (bool bit : src)
42 {
43 if (cursor < bits.size())
44 lastBit = bits[cursor++] = bit;
45 }
46}
47
48static void write_bits(
49 std::vector<bool>& bits, unsigned& cursor, uint64_t data, int width)

Callers 2

write_byteFunction · 0.70
write_sectorFunction · 0.70

Calls 3

sizeMethod · 0.45
eofMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected