MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / readU16

Function readU16

lib/EpdFont/SdCardFont.cpp:41–41  ·  view source on GitHub ↗

Helper to read little-endian values from byte buffer

Source from the content-addressed store, hash-verified

39
40// Helper to read little-endian values from byte buffer
41inline uint16_t readU16(const uint8_t* p) { return p[0] | (p[1] << 8); }
42inline int16_t readI16(const uint8_t* p) { return static_cast<int16_t>(p[0] | (p[1] << 8)); }
43inline uint32_t readU32(const uint8_t* p) { return p[0] | (p[1] << 8) | (p[2] << 16) | (p[3] << 24); }
44

Callers 1

loadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected