Lines Matching defs:Ptr
63 char *Ptr = Buffer;
65 Ptr += sizeof(u64);
76 memcpy(Ptr, &Entry, sizeof(SegmentEntry));
77 Ptr += sizeof(SegmentEntry);
84 CHECK(ExpectedNumBytes >= static_cast<u64>(Ptr - Buffer) &&
119 char *Ptr = Buffer;
120 Ptr = WriteBytes(static_cast<u64>(NumIds), Ptr);
124 Ptr = WriteBytes(Id, Ptr);
125 Ptr += sizeof(u64); // Bump it by u64, we will fill this in later.
132 Ptr = WriteBytes(static_cast<u64>(pc), Ptr);
136 *(u64 *)(Ptr - (Count + 1) * sizeof(u64)) = Count;
139 CHECK(ExpectedNumBytes >= static_cast<u64>(Ptr - Buffer) &&
161 char *Ptr = Buffer;
163 Ptr = WriteBytes(NumEntries, Ptr);
168 Ptr = WriteBytes(Key, Ptr);
172 Ptr = WriteBytes((*h)->mib, Ptr);
175 Ptr = WriteBytes(HistogramEntry, Ptr);
181 CHECK(ExpectedNumBytes >= static_cast<u64>(Ptr - Buffer) &&
266 char *Ptr = Buffer;
275 Ptr = WriteBytes(header, Ptr);
277 SerializeSegmentsToBuffer(Modules, NumSegmentBytes, Ptr);
278 Ptr += NumSegmentBytes;
281 NumMIBInfoBytes + NumHistogramBytes, Ptr);
282 Ptr += NumMIBInfoBytes + NumHistogramBytes;
284 SerializeStackToBuffer(StackIds, NumStackBytes, Ptr);