Lines Matching refs:DataBuffer
233 bool RawInstrProfReader<IntPtrT>::hasFormat(const MemoryBuffer &DataBuffer) { in hasFormat() argument
234 if (DataBuffer.getBufferSize() < sizeof(uint64_t)) in hasFormat()
237 *reinterpret_cast<const uint64_t *>(DataBuffer.getBufferStart()); in hasFormat()
244 if (!hasFormat(*DataBuffer)) in readHeader()
246 if (DataBuffer->getBufferSize() < sizeof(RawInstrProf::Header)) in readHeader()
249 DataBuffer->getBufferStart()); in readHeader()
257 const char *End = DataBuffer->getBufferEnd(); in readNextHeader()
318 if (Start + ProfileSize > DataBuffer->getBufferEnd()) in readHeader()
455 VDataPtrOrErr.get()->deserializeTo(DataBuffer.back(), nullptr); in readValueProfilingData()
467 DataBuffer.clear(); in ReadData()
495 DataBuffer.emplace_back(K, Hash, std::move(CounterBuffer)); in ReadData()
499 DataBuffer.clear(); in ReadData()
503 return DataBuffer; in ReadData()
546 bool IndexedInstrProfReader::hasFormat(const MemoryBuffer &DataBuffer) { in hasFormat() argument
547 if (DataBuffer.getBufferSize() < 8) in hasFormat()
551 endian::read<uint64_t, little, aligned>(DataBuffer.getBufferStart()); in hasFormat()
558 (const unsigned char *)DataBuffer->getBufferStart(); in readHeader()
560 if ((const unsigned char *)DataBuffer->getBufferEnd() - Cur < 24) in readHeader()