| 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. |
no test coverage detected