Lines Matching defs:buf
194 std::shared_ptr<DfxMap> DfxMap::Create(std::string buf, size_t size)
196 if (buf.empty() || size == 0) {
200 if (!map->Parse(&buf[0], size)) {
201 DFXLOGW("Failed to parse map: %{public}s", buf.c_str());
207 bool DfxMap::Parse(char* buf, size_t size)
210 if (buf == nullptr || size == 0) {
219 const char* cp = buf;
303 char buf[LINE_BUF_SIZE] = {0};
307 int ret = snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, "%" PRIx64 "-%" PRIx64 " %s %08" PRIx64 " %s\n", \
312 return std::string(buf);