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

Function xorBytes

lib/core/crc.cc:56–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56uint8_t xorBytes(const Bytes& bytes)
57{
58 ByteReader br(bytes);
59
60 uint8_t i = 0;
61 while (!br.eof())
62 i ^= br.read_8();
63 return i;
64}
65
66uint16_t crc16(uint16_t poly, uint16_t crc, const Bytes& bytes)
67{

Callers 3

writeSectorMethod · 0.85
decodeSectorRecordMethod · 0.85
decodeDataRecordMethod · 0.85

Calls 2

read_8Method · 0.80
eofMethod · 0.45

Tested by

no test coverage detected