Lines Matching refs:ptr_
12 : ptr_(buf), end_(ptr_ + len) {} in BigEndianReader()
15 if (ptr_ + len > end_) in Skip()
17 ptr_ += len; in Skip()
22 if (ptr_ + len > end_) in ReadBytes()
24 memcpy(out, ptr_, len); in ReadBytes()
25 ptr_ += len; in ReadBytes()
30 if (ptr_ + len > end_) in ReadPiece()
32 *out = base::StringPiece(ptr_, len); in ReadPiece()
33 ptr_ += len; in ReadPiece()
39 if (ptr_ + sizeof(T) > end_) in Read()
41 ReadBigEndian<T>(ptr_, value); in Read()
42 ptr_ += sizeof(T); in Read()
63 : ptr_(buf), end_(ptr_ + len) {} in BigEndianWriter()
66 if (ptr_ + len > end_) in Skip()
68 ptr_ += len; in Skip()
73 if (ptr_ + len > end_) in WriteBytes()
75 memcpy(ptr_, buf, len); in WriteBytes()
76 ptr_ += len; in WriteBytes()
82 if (ptr_ + sizeof(T) > end_) in Write()
84 WriteBigEndian<T>(ptr_, value); in Write()
85 ptr_ += sizeof(T); in Write()