Lines Matching defs:scratch
59 bool Reader::ReadRecord(Slice* record, std::string* scratch) {
66 scratch->clear();
84 if (scratch->empty()) {
87 ReportCorruption(scratch->size(), "partial record without end(1)");
91 scratch->clear();
102 if (scratch->empty()) {
105 ReportCorruption(scratch->size(), "partial record without end(2)");
109 scratch->assign(fragment.data(), fragment.size());
118 scratch->append(fragment.data(), fragment.size());
127 scratch->append(fragment.data(), fragment.size());
128 *record = Slice(*scratch);
136 ReportCorruption(scratch->size(), "partial record without end(3)");
137 scratch->clear();
143 ReportCorruption(scratch->size(), "error in middle of record");
145 scratch->clear();
153 (fragment.size() + (in_fragmented_record ? scratch->size() : 0)),
156 scratch->clear();