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

Function WriteRecordHeader

engine/dlib/src/dlib/mdns.cpp:720–728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718 }
719
720 static bool WriteRecordHeader(uint8_t* buffer, uint32_t buffer_size, uint32_t* offset,
721 const char* name, uint16_t type, uint16_t klass, uint32_t ttl, uint16_t rdlength)
722 {
723 return WriteName(buffer, buffer_size, offset, name)
724 && WriteU16(buffer, buffer_size, offset, type)
725 && WriteU16(buffer, buffer_size, offset, klass)
726 && WriteU32(buffer, buffer_size, offset, ttl)
727 && WriteU16(buffer, buffer_size, offset, rdlength);
728 }
729
730 // Writes prebuilt rdata bytes after a record header. Probe construction uses
731 // this so the same canonical rdata can be shared between comparisons and I/O.

Callers 2

WriteCanonicalRecordFunction · 0.85
WriteRecordPtrFunction · 0.85

Calls 3

WriteNameFunction · 0.70
WriteU16Function · 0.70
WriteU32Function · 0.70

Tested by

no test coverage detected