Lines Matching full:chain_
183 chain_(chain),
220 if (!chain_.empty())
383 // U8 reads, and removes, a single byte from |chain_|
385 if (chain_.size() < 1)
387 *v = chain_[0];
388 chain_.remove_prefix(1);
392 // U16 reads, and removes, a big-endian uint16 from |chain_|
394 if (chain_.size() < 2)
396 const uint8* data = reinterpret_cast<const uint8*>(chain_.data());
399 chain_.remove_prefix(2);
404 // chunk from |chain_|
409 if (chain_.size() < length)
411 *v = chain_.substr(0, length);
412 chain_.remove_prefix(length);
416 // ReadName reads, and removes, an 8-bit length prefixed DNS name from |chain_|
418 base::StringPiece saved = chain_;
423 if (chain_.size() < 1)
425 uint8 label_len = chain_.data()[0];
426 chain_.remove_prefix(1);
434 if (chain_.size() < label_len)
436 chain_.remove_prefix(label_len);
443 // ReadAheadEntryKey returns the entry key when |chain_| is positioned at the
446 base::StringPiece saved = chain_;
457 chain_ = saved;
461 // ReadAheadKey returns the entry key when |chain_| is positioned at the start
464 base::StringPiece saved = chain_;
474 chain_ = saved;