Lines Matching refs:buf
76 bool PerfFileSection::Write(const char *buf, size_t size) in Write() argument
78 return Write(buf, size, size); in Write()
81 bool PerfFileSection::Write(const char *buf, size_t size, size_t max) in Write() argument
91 std::copy(buf, buf + size, wBuffer_ + offset_); in Write()
124 char buf[size]; in Read() local
125 if (!Read(buf, size)) { in Read()
128 if (buf[size - 1] != 0) { in Read()
131 value = buf; in Read()
140 bool PerfFileSection::Read(char *buf, size_t size) in Read() argument
142 HLOG_ASSERT(buf != nullptr); in Read()
148 if (memset_s(buf, size, 0, size) != EOK) { // make sure the content return is 0 when failed in Read()
155 std::copy((rBuffer_ + offset_), (rBuffer_ + offset_ + size), buf); in Read()
157 HLOGDUMMY("after read offset_ %zx size %zu buf %x", offset_, size, buf[0]); in Read()
166 PerfFileSectionString::PerfFileSectionString(FEATURE id, const char *buf, size_t size) in PerfFileSectionString() argument
169 Init(buf, size); in PerfFileSectionString()
181 bool PerfFileSectionString::GetBinary(char *buf, size_t size) in GetBinary() argument
187 Init(buf, size); in GetBinary()
272 PerfFileSectionSymbolsFiles::PerfFileSectionSymbolsFiles(FEATURE id, const char *buf, size_t size) in PerfFileSectionSymbolsFiles() argument
275 Init(buf, size); in PerfFileSectionSymbolsFiles()
280 bool PerfFileSectionSymbolsFiles::GetBinary(char *buf, size_t size) in GetBinary() argument
285 Init(buf, size); in GetBinary()
313 PerfFileSectionUniStackTable::PerfFileSectionUniStackTable(FEATURE id, const char *buf, size_t size) in PerfFileSectionUniStackTable() argument
317 Init(buf, size); in PerfFileSectionUniStackTable()
340 bool PerfFileSectionUniStackTable::GetBinary(char *buf, size_t size) in GetBinary() argument
343 Init(buf, size); in GetBinary()
373 PerfFileSectionNrCpus::PerfFileSectionNrCpus(FEATURE id, const char *buf, size_t size) in PerfFileSectionNrCpus() argument
376 Init(buf, size); in PerfFileSectionNrCpus()
388 bool PerfFileSectionNrCpus::GetBinary(char *buf, size_t size) in GetBinary() argument
394 Init(buf, size); in GetBinary()
411 PerfFileSectionU64::PerfFileSectionU64(FEATURE id, const char *buf, size_t size) in PerfFileSectionU64() argument
414 Init(buf, size); in PerfFileSectionU64()
425 bool PerfFileSectionU64::GetBinary(char *buf, size_t size) in GetBinary() argument
431 Init(buf, size); in GetBinary()
453 PerfFileSectionEventDesc::PerfFileSectionEventDesc(FEATURE id, const char *buf, size_t size) in PerfFileSectionEventDesc() argument
457 Init(buf, size); in PerfFileSectionEventDesc()
506 bool PerfFileSectionEventDesc::GetBinary(char *buf, size_t size) in GetBinary() argument
511 Init(buf, size); in GetBinary()