• Home
  • Raw
  • Download

Lines Matching refs:buffer_cur

184     char* buffer_cur = buffer;  in write()  local
198 if (buffer_cur + sizeof(uint8_t) + len > buffer_end) { in write()
202 *buffer_cur++ = len; in write()
203 buffer_cur = std::copy(std::next(name.begin(), pos), in write()
205 buffer_cur); in write()
209 *buffer_cur++ = 0; in write()
210 return buffer_cur; in write()
268 char* buffer_cur = qname.write(buffer, buffer_end); in write() local
269 if (buffer_cur == nullptr) return nullptr; in write()
270 if (buffer_cur + 2*sizeof(uint16_t) > buffer_end) { in write()
274 *reinterpret_cast<uint16_t*>(buffer_cur) = htons(qtype); in write()
275 *reinterpret_cast<uint16_t*>(buffer_cur + sizeof(uint16_t)) = in write()
277 return buffer_cur + 2*sizeof(uint16_t); in write()
331 char* buffer_cur = name.write(buffer, buffer_end); in write() local
332 if (buffer_cur == nullptr) return nullptr; in write()
333 buffer_cur = writeIntFields(rdata.size(), buffer_cur, buffer_end); in write()
334 if (buffer_cur == nullptr) return nullptr; in write()
335 if (buffer_cur + rdata.size() > buffer_end) { in write()
339 return std::copy(rdata.begin(), rdata.end(), buffer_cur); in write()
485 char* buffer_cur = buffer + sizeof(Header); in write() local
487 buffer_cur = question.write(buffer_cur, buffer_end); in write()
488 if (buffer_cur == nullptr) return nullptr; in write()
491 buffer_cur = answer.write(buffer_cur, buffer_end); in write()
492 if (buffer_cur == nullptr) return nullptr; in write()
495 buffer_cur = authority.write(buffer_cur, buffer_end); in write()
496 if (buffer_cur == nullptr) return nullptr; in write()
499 buffer_cur = additional.write(buffer_cur, buffer_end); in write()
500 if (buffer_cur == nullptr) return nullptr; in write()
502 return buffer_cur; in write()