Lines Matching refs:DataBuffer
293 bool RawInstrProfReader<IntPtrT>::hasFormat(const MemoryBuffer &DataBuffer) { in hasFormat() argument
294 if (DataBuffer.getBufferSize() < sizeof(uint64_t)) in hasFormat()
297 *reinterpret_cast<const uint64_t *>(DataBuffer.getBufferStart()); in hasFormat()
304 if (!hasFormat(*DataBuffer)) in readHeader()
306 if (DataBuffer->getBufferSize() < sizeof(RawInstrProf::Header)) in readHeader()
309 DataBuffer->getBufferStart()); in readHeader()
316 const char *End = DataBuffer->getBufferEnd(); in readNextHeader()
376 if (Start + ValueDataOffset > DataBuffer->getBufferEnd()) in readHeader()
448 ValueDataStart, (const unsigned char *)DataBuffer->getBufferEnd(), in readValueProfilingData()
513 VDataPtrOrErr.get()->deserializeTo(DataBuffer.back(), nullptr); in readValueProfilingData()
527 DataBuffer.clear(); in ReadData()
554 DataBuffer.emplace_back(K, Hash, std::move(CounterBuffer)); in ReadData()
559 DataBuffer.clear(); in ReadData()
563 return DataBuffer; in ReadData()
724 bool IndexedInstrProfReader::hasFormat(const MemoryBuffer &DataBuffer) { in hasFormat() argument
727 if (DataBuffer.getBufferSize() < 8) in hasFormat()
730 endian::read<uint64_t, little, aligned>(DataBuffer.getBufferStart()); in hasFormat()
790 (const unsigned char *)DataBuffer->getBufferStart(); in readHeader()
792 if ((const unsigned char *)DataBuffer->getBufferEnd() - Cur < 24) in readHeader()