MCPcopy Create free account
hub / github.com/FastLED/FastLED / readU16BE

Function readU16BE

src/fl/codec/mp4_parser.cpp.hpp:17–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17inline fl::u16 readU16BE(fl::span<const fl::u8> data, fl::size offset, bool& ok) {
18 if (offset + 2 > data.size()) { ok = false; return 0; }
19 return (fl::u16(data[offset]) << 8) | fl::u16(data[offset + 1]);
20}
21
22// 4-char box type comparison
23inline bool boxIs(fl::span<const fl::u8> data, fl::size offset, const char* type) {

Callers 2

parseAvcCFunction · 0.85
parseMp4Function · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected