MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ReadAll

Method ReadAll

tensorflow/core/lib/io/buffered_inputstream.cc:170–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170Status BufferedInputStream::ReadAll(string* result) {
171 result->clear();
172 Status status;
173 while (status.ok()) {
174 status = FillBuffer();
175 if (limit_ == 0) {
176 break;
177 }
178 result->append(buf_);
179 pos_ = limit_;
180 }
181
182 if (errors::IsOutOfRange(status)) {
183 file_status_ = status;
184 return Status::OK();
185 }
186 return status;
187}
188
189Status BufferedInputStream::Reset() {
190 TF_RETURN_IF_ERROR(input_stream_->Reset());

Callers 2

TESTFunction · 0.45
ReadEntireFileFunction · 0.45

Calls 3

clearMethod · 0.45
okMethod · 0.45
appendMethod · 0.45

Tested by 1

TESTFunction · 0.36