Home
last modified time | relevance | path

Searched refs:line_buffer (Results 1 – 2 of 2) sorted by relevance

/base/hiviewdfx/hidumper/frameworks/native/src/executor/
Dcmd_dumper.cpp130 char* line_buffer = nullptr; in GetLineData() local
133 read = getline(&line_buffer, &len, fp); in GetLineData()
135 if (line_buffer[read - 1] == '\n') { in GetLineData()
136 line_buffer[read - 1] = '\0'; // replease \n in GetLineData()
138 std::string line = line_buffer; in GetLineData()
149 if (line_buffer != nullptr) { in GetLineData()
150 free(line_buffer); in GetLineData()
151 line_buffer = nullptr; in GetLineData()
Dfile_stream_dumper.cpp106 char* line_buffer = nullptr; in ReadLineInFile() local
109 read = getline(&line_buffer, &len, fp_); in ReadLineInFile()
111 if (line_buffer[read-1] == '\n') { in ReadLineInFile()
112 line_buffer[read-1] = '\0'; // replease \n in ReadLineInFile()
114 std::string line = line_buffer; in ReadLineInFile()
134 if (line_buffer != nullptr) { in ReadLineInFile()
135 free(line_buffer); in ReadLineInFile()
136 line_buffer = nullptr; in ReadLineInFile()