MCPcopy Create free account
hub / github.com/defold/defold / ReadU16

Function ReadU16

engine/dlib/src/dlib/mdns.cpp:476–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474 }
475
476 static bool ReadU16(const uint8_t* data, uint32_t size, uint32_t* offset, uint16_t* out)
477 {
478 if (*offset + 2 > size)
479 return false;
480 *out = (uint16_t) ((data[*offset] << 8) | data[*offset + 1]);
481 *offset += 2;
482 return true;
483 }
484
485 static bool ReadU32(const uint8_t* data, uint32_t size, uint32_t* offset, uint32_t* out)
486 {

Callers 7

CollectProbeClaimsFunction · 0.70
SuppressKnownAnswersFunction · 0.70
HandleIncomingQueriesFunction · 0.70
HandleBrowserRecordFunction · 0.70
HandleBrowserResponsesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected