MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / decoding

Method decoding

MonaCore/sources/RTMFP/RTMFPDecoder.cpp:27–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace Mona {
26
27UInt32 RTMFPDecoder::decoding(Exception& ex, UInt8* data,UInt32 size) {
28 // Decrypt
29 _pDecoder->process(data, size);
30 // Check CRC
31 BinaryReader reader(data, size);
32 UInt16 crc(reader.read16());
33 if (Crypto::ComputeCRC(reader) == crc)
34 receive(reader.current(),reader.available());
35 else
36 ex.set(Exception::CRYPTO, "Bad RTMFP CRC sum computing");
37 return size;
38}
39
40} // namespace Mona

Callers

nothing calls this directly

Calls 5

read16Method · 0.80
processMethod · 0.45
currentMethod · 0.45
availableMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected