• Home
  • Raw
  • Download

Lines Matching refs:buffer

46 bool PGOProfilerHeader::BuildFromLegacy(void *buffer, PGOProfilerHeader **header)  in BuildFromLegacy()  argument
48 auto *inHeader = reinterpret_cast<PGOProfilerHeaderLegacy *>(buffer); in BuildFromLegacy()
67 bool PGOProfilerHeader::BuildFromElastic(void *buffer, size_t bufferSize, PGOProfilerHeader **heade… in BuildFromElastic() argument
69 auto *inHeader = reinterpret_cast<PGOProfilerHeader *>(buffer); in BuildFromElastic()
70 if (!inHeader->Verify(buffer, bufferSize)) { in BuildFromElastic()
85 bool PGOProfilerHeader::ParseFromBinary(void *buffer, size_t bufferSize, PGOProfilerHeader **header) in ParseFromBinary() argument
87 auto *inHeaderBase = reinterpret_cast<FileHeaderBase *>(buffer); in ParseFromBinary()
90 return BuildFromLegacy(buffer, header); in ParseFromBinary()
92 return BuildFromElastic(buffer, bufferSize, header); in ParseFromBinary()
110 bool PGOProfilerHeader::VerifyConsistency(void *buffer, size_t bufferSize) const in VerifyConsistency() argument
115 …uint32_t checksum = adler32(0, reinterpret_cast<const Bytef *>(buffer) + MAGIC_SIZE, VERSION_SIZE); in VerifyConsistency()
116 checksum = adler32(checksum, reinterpret_cast<const Bytef *>(buffer) + CHECKSUM_END_OFFSET, in VerifyConsistency()
180 void PGOPandaFileInfos::ParseFromBinary(void *buffer, SectionInfo *const info) in ParseFromBinary() argument
182 void *addr = reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(buffer) + info->offset_); in ParseFromBinary()
340 void PGOMethodTypeSet::SkipFromBinary(void **buffer) in SkipFromBinary() argument
342 uint32_t size = base::ReadBuffer<uint32_t>(buffer, sizeof(uint32_t)); in SkipFromBinary()
344 base::ReadBufferInSize<ScalarOpTypeInfo>(buffer); in SkipFromBinary()
348 bool PGOMethodTypeSet::ParseFromBinary(void **buffer, PGOProfilerHeader *const header) in ParseFromBinary() argument
350 uint32_t size = base::ReadBuffer<uint32_t>(buffer, sizeof(uint32_t)); in ParseFromBinary()
352 auto typeInfo = base::ReadBufferInSize<TypeInfoHeader>(buffer); in ParseFromBinary()
729 bool PGOMethodInfoMap::ParseFromBinary(Chunk *chunk, uint32_t threshold, void **buffer, PGOProfiler… in ParseFromBinary() argument
731 SectionInfo secInfo = base::ReadBuffer<SectionInfo>(buffer); in ParseFromBinary()
733 PGOMethodInfo *info = base::ReadBufferInSize<PGOMethodInfo>(buffer); in ParseFromBinary()
736 base::ReadBuffer<uint32_t>(buffer, sizeof(uint32_t)); in ParseFromBinary()
739 PGOMethodTypeSet::SkipFromBinary(buffer); in ParseFromBinary()
748 auto checksum = base::ReadBuffer<uint32_t>(buffer, sizeof(uint32_t)); in ParseFromBinary()
753 typeInfoSet->ParseFromBinary(buffer, header); in ParseFromBinary()
904 bool PGOMethodIdSet::ParseFromBinary(uint32_t threshold, void **buffer, PGOProfilerHeader *const he… in ParseFromBinary() argument
906 SectionInfo secInfo = base::ReadBuffer<SectionInfo>(buffer); in ParseFromBinary()
908 PGOMethodInfo *info = base::ReadBufferInSize<PGOMethodInfo>(buffer); in ParseFromBinary()
911 base::ReadBuffer<uint32_t>(buffer, sizeof(uint32_t)); in ParseFromBinary()
914 PGOMethodTypeSet::SkipFromBinary(buffer); in ParseFromBinary()
920 checksum = base::ReadBuffer<uint32_t>(buffer, sizeof(uint32_t)); in ParseFromBinary()
929 methodInfo.GetPGOMethodTypeSet().ParseFromBinary(buffer, header); in ParseFromBinary()
1079 void PGORecordDetailInfos::ParseFromBinary(void *buffer, PGOProfilerHeader *const header) in ParseFromBinary() argument
1082 void *addr = reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(buffer) + info->offset_); in ParseFromBinary()
1100 bool PGORecordDetailInfos::ParseFromBinaryForLayout(void **buffer, PGOProfilerHeader *const header) in ParseFromBinaryForLayout() argument
1102 SectionInfo secInfo = base::ReadBuffer<SectionInfo>(buffer); in ParseFromBinaryForLayout()
1104 PGOHClassLayoutDescInner *info = base::ReadBufferInSize<PGOHClassLayoutDescInner>(buffer); in ParseFromBinaryForLayout()
1257 void PGORecordSimpleInfos::ParseFromBinary(void *buffer, PGOProfilerHeader *const header) in ParseFromBinary() argument
1260 void *addr = reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(buffer) + info->offset_); in ParseFromBinary()
1301 bool PGORecordSimpleInfos::ParseFromBinaryForLayout(void **buffer, PGOProfilerHeader *const header) in ParseFromBinaryForLayout() argument
1303 SectionInfo secInfo = base::ReadBuffer<SectionInfo>(buffer); in ParseFromBinaryForLayout()
1305 PGOHClassLayoutDescInner *info = base::ReadBufferInSize<PGOHClassLayoutDescInner>(buffer); in ParseFromBinaryForLayout()