Searched refs:buffer_end (Results 1 – 2 of 2) sorted by relevance
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder.cpp | 156 const char* DNSName::read(const char* buffer, const char* buffer_end) { in read() argument 160 cur = parseField(cur, buffer_end, &last); in read() 169 char* DNSName::write(char* buffer, const char* buffer_end) const { in write() 184 if (buffer_cur + sizeof(uint8_t) + len > buffer_end) { in write() 198 const char* DNSName::parseField(const char* buffer, const char* buffer_end, bool* last) { in parseField() argument 199 if (buffer + sizeof(uint8_t) > buffer_end) { in parseField() 212 if (cur + ofs > buffer_end) { in parseField() 227 const char* DNSQuestion::read(const char* buffer, const char* buffer_end) { in read() argument 228 const char* cur = qname.read(buffer, buffer_end); in read() 233 if (cur + 2 * sizeof(uint16_t) > buffer_end) { in read() [all …]
|
D | dns_responder.h | 45 const char* read(const char* buffer, const char* buffer_end); 46 char* write(char* buffer, const char* buffer_end) const; 49 const char* parseField(const char* buffer, const char* buffer_end, bool* last); 56 const char* read(const char* buffer, const char* buffer_end); 57 char* write(char* buffer, const char* buffer_end) const; 67 const char* read(const char* buffer, const char* buffer_end); 68 char* write(char* buffer, const char* buffer_end) const; 79 const char* readIntFields(const char* buffer, const char* buffer_end, unsigned* rdlen); 80 char* writeIntFields(unsigned rdlen, char* buffer, const char* buffer_end) const; 99 const char* read(const char* buffer, const char* buffer_end); [all …]
|