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

Method FillBuffer

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

Source from the content-addressed store, hash-verified

41}
42
43Status BufferedInputStream::FillBuffer() {
44 if (!file_status_.ok()) {
45 pos_ = 0;
46 limit_ = 0;
47 return file_status_;
48 }
49 Status s = input_stream_->ReadNBytes(size_, &buf_);
50 pos_ = 0;
51 limit_ = buf_.size();
52 if (buf_.empty()) {
53 DCHECK(!s.ok());
54 file_status_ = s;
55 }
56 return s;
57}
58
59Status BufferedInputStream::ReadLineHelper(string* result, bool include_eol) {
60 result->clear();

Callers

nothing calls this directly

Calls 4

okMethod · 0.45
ReadNBytesMethod · 0.45
sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected