Lines Matching refs:cur
157 const char* cur = buffer;
160 cur = parseField(cur, buffer_end, &last);
161 if (cur == nullptr) {
166 return cur;
207 const char* cur = buffer + sizeof(uint8_t);
212 return cur;
214 if (cur + ofs > buffer_end) {
218 name.append(cur, ofs);
220 return cur + ofs;
239 const char* cur = qname.read(buffer, buffer_end);
240 if (cur == nullptr) {
244 if (cur + 2*sizeof(uint16_t) > buffer_end) {
248 qtype = ntohs(*reinterpret_cast<const uint16_t*>(cur));
249 qclass = ntohs(*reinterpret_cast<const uint16_t*>(cur + sizeof(uint16_t)));
250 return cur + 2*sizeof(uint16_t);
297 const char* cur = name.read(buffer, buffer_end);
298 if (cur == nullptr) {
303 cur = readIntFields(cur, buffer_end, &rdlen);
304 if (cur == nullptr) {
308 if (cur + rdlen > buffer_end) {
312 rdata.assign(cur, cur + rdlen);
313 return cur + rdlen;
401 const char* cur = readHeader(buffer, buffer_end, &qdcount, &ancount,
403 if (cur == nullptr) {
410 cur = questions[i].read(cur, buffer_end);
411 if (cur == nullptr) {
420 cur = answers[i].read(cur, buffer_end);
421 if (cur == nullptr) {
430 cur = authorities[i].read(cur, buffer_end);
431 if (cur == nullptr) {
440 cur = additionals[i].read(cur, buffer_end);
441 if (cur == nullptr) {
447 return cur;
713 const char* cur = header.read(response, response_end);
714 if (cur == nullptr) ALOGI("response is flawed");
728 const char* cur = header.read(buffer, buffer_end);
730 if (cur == nullptr) {