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

Function WriteU16

engine/dlib/src/dlib/mdns.cpp:497–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495 }
496
497 static bool WriteU16(uint8_t* data, uint32_t size, uint32_t* offset, uint16_t value)
498 {
499 if (*offset + 2 > size)
500 return false;
501 data[*offset] = (uint8_t) ((value >> 8) & 0xff);
502 data[*offset + 1] = (uint8_t) (value & 0xff);
503 *offset += 2;
504 return true;
505 }
506
507 static bool WriteU32(uint8_t* data, uint32_t size, uint32_t* offset, uint32_t value)
508 {

Callers 6

WriteRecordHeaderFunction · 0.70
BuildSrvRDataFunction · 0.70
BuildResponseMessageFunction · 0.70
BuildQueryMessageFunction · 0.70
BuildProbeMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected