Lines Matching refs:DataBuffer
175 bool RawInstrProfReader<IntPtrT>::hasFormat(const MemoryBuffer &DataBuffer) { in hasFormat() argument
176 if (DataBuffer.getBufferSize() < sizeof(uint64_t)) in hasFormat()
179 *reinterpret_cast<const uint64_t *>(DataBuffer.getBufferStart()); in hasFormat()
186 if (!hasFormat(*DataBuffer)) in readHeader()
188 if (DataBuffer->getBufferSize() < sizeof(RawHeader)) in readHeader()
191 reinterpret_cast<const RawHeader *>(DataBuffer->getBufferStart()); in readHeader()
199 const char *End = DataBuffer->getBufferEnd(); in readNextHeader()
245 if (Start + ProfileSize > DataBuffer->getBufferEnd()) in readHeader()
274 RawName.data() + RawName.size() > DataBuffer->getBufferEnd() || in readNextRecord()
306 bool IndexedInstrProfReader::hasFormat(const MemoryBuffer &DataBuffer) { in hasFormat() argument
307 if (DataBuffer.getBufferSize() < 8) in hasFormat()
311 endian::read<uint64_t, little, aligned>(DataBuffer.getBufferStart()); in hasFormat()
317 (const unsigned char *)DataBuffer->getBufferStart(); in readHeader()
319 if ((const unsigned char *)DataBuffer->getBufferEnd() - Cur < 24) in readHeader()