Lines Matching refs:DataBuffer
254 bool RawInstrProfReader<IntPtrT>::hasFormat(const MemoryBuffer &DataBuffer) { in hasFormat() argument
255 if (DataBuffer.getBufferSize() < sizeof(uint64_t)) in hasFormat()
258 *reinterpret_cast<const uint64_t *>(DataBuffer.getBufferStart()); in hasFormat()
265 if (!hasFormat(*DataBuffer)) in readHeader()
267 if (DataBuffer->getBufferSize() < sizeof(RawInstrProf::Header)) in readHeader()
270 DataBuffer->getBufferStart()); in readHeader()
277 const char *End = DataBuffer->getBufferEnd(); in readNextHeader()
338 if (Start + ValueDataOffset > DataBuffer->getBufferEnd()) in readHeader()
411 ValueDataStart, (const unsigned char *)DataBuffer->getBufferEnd(), in readValueProfilingData()
474 VDataPtrOrErr.get()->deserializeTo(DataBuffer.back(), nullptr); in readValueProfilingData()
486 DataBuffer.clear(); in ReadData()
514 DataBuffer.emplace_back(K, Hash, std::move(CounterBuffer)); in ReadData()
519 DataBuffer.clear(); in ReadData()
523 return DataBuffer; in ReadData()
566 bool IndexedInstrProfReader::hasFormat(const MemoryBuffer &DataBuffer) { in hasFormat() argument
567 if (DataBuffer.getBufferSize() < 8) in hasFormat()
571 endian::read<uint64_t, little, aligned>(DataBuffer.getBufferStart()); in hasFormat()
627 (const unsigned char *)DataBuffer->getBufferStart(); in readHeader()
629 if ((const unsigned char *)DataBuffer->getBufferEnd() - Cur < 24) in readHeader()