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

Method push

lib/core/bytes.cc:393–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393void BitWriter::push(uint32_t bits, size_t size)
394{
395 bits <<= 32 - size;
396
397 while (size-- != 0)
398 {
399 _fifo = (_fifo << 1) | (bits >> 31);
400 _bitcount++;
401 bits <<= 1;
402 if (_bitcount == 8)
403 {
404 _bw.write_8(_fifo);
405 _bitcount = 0;
406 _fifo = 0;
407 }
408 }
409}
410
411void BitWriter::flush()
412{

Callers 7

decodeFunction · 0.45
decodeFunction · 0.45
decodeFunction · 0.45
decodeDataRecordMethod · 0.45
toBytesFunction · 0.45
encodeMfmFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected