Lines Matching refs:result
66 char* result = nullptr;
75 if (result != nullptr) {
76 DeleteArray(result);
89 // will exit the loop after copying this buffer into the result.
92 if (result == nullptr) {
93 // Allocate the initial result and make room for the terminating '\0'
94 result = NewArray<char>(len + 1);
96 // Allocate a new result with enough room for the new addition.
100 // array as the result.
101 std::memcpy(new_result, result, offset * kCharSize);
102 DeleteArray(result);
103 result = new_result;
105 // Copy the newly read line into the result.
106 std::memcpy(result + offset, line_buf, len * kCharSize);
109 DCHECK_NOT_NULL(result);
110 result[offset] = '\0';
111 return result;
130 std::vector<char> result(size);
132 ptrdiff_t read = fread(result.data() + i, 1, size - i, file);
141 return result;
147 std::vector<char> result = ReadCharsFromFile(file, exists, verbose, filename);
149 return result;
175 std::vector<char> result = ReadCharsFromFile(filename, exists, verbose);
176 return VectorToString(result);
180 std::vector<char> result = ReadCharsFromFile(file, exists, verbose, "");
181 return VectorToString(result);