• Home
  • Raw
  • Download

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()
224 PerfFileSectionSymbolsFiles::PerfFileSectionSymbolsFiles(FEATURE id, const char *buf, size_t size) in PerfFileSectionSymbolsFiles() argument
227 Init(buf, size); in PerfFileSectionSymbolsFiles()
271 bool PerfFileSectionSymbolsFiles::GetBinary(char *buf, size_t size) in GetBinary() argument
276 Init(buf, size); in GetBinary()
304 PerfFileSectionNrCpus::PerfFileSectionNrCpus(FEATURE id, const char *buf, size_t size) in PerfFileSectionNrCpus() argument
307 Init(buf, size); in PerfFileSectionNrCpus()
319 bool PerfFileSectionNrCpus::GetBinary(char *buf, size_t size) in GetBinary() argument
325 Init(buf, size); in GetBinary()
342 PerfFileSectionU64::PerfFileSectionU64(FEATURE id, const char *buf, size_t size) in PerfFileSectionU64() argument
345 Init(buf, size); in PerfFileSectionU64()
356 bool PerfFileSectionU64::GetBinary(char *buf, size_t size) in GetBinary() argument
362 Init(buf, size); in GetBinary()
384 PerfFileSectionEventDesc::PerfFileSectionEventDesc(FEATURE id, const char *buf, size_t size) in PerfFileSectionEventDesc() argument
388 Init(buf, size); in PerfFileSectionEventDesc()
437 bool PerfFileSectionEventDesc::GetBinary(char *buf, size_t size) in GetBinary() argument
442 Init(buf, size); in GetBinary()