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

Function sumBytes

lib/core/crc.cc:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46uint16_t sumBytes(const Bytes& bytes)
47{
48 ByteReader br(bytes);
49
50 uint16_t i = 0;
51 while (!br.eof())
52 i += br.read_8();
53 return i;
54}
55
56uint8_t xorBytes(const Bytes& bytes)
57{

Callers 6

write_sectorFunction · 0.85
decodeDataRecordMethod · 0.85
writeSectorMethod · 0.85
decodeSectorRecordMethod · 0.85
decodeDataRecordMethod · 0.85
decodeSectorRecordMethod · 0.85

Calls 2

read_8Method · 0.80
eofMethod · 0.45

Tested by

no test coverage detected