| 41 | } |
| 42 | |
| 43 | Status 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 | |
| 59 | Status BufferedInputStream::ReadLineHelper(string* result, bool include_eol) { |
| 60 | result->clear(); |
nothing calls this directly
no test coverage detected