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

Method FillBuffer

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

Source from the content-addressed store, hash-verified

31InputBuffer::~InputBuffer() { delete[] buf_; }
32
33Status InputBuffer::FillBuffer() {
34 StringPiece data;
35 Status s = file_->Read(file_pos_, size_, &data, buf_);
36 if (data.data() != buf_) {
37 memmove(buf_, data.data(), data.size());
38 }
39 pos_ = buf_;
40 limit_ = pos_ + data.size();
41 file_pos_ += data.size();
42 return s;
43}
44
45Status InputBuffer::ReadLine(string* result) {
46 result->clear();

Callers

nothing calls this directly

Calls 3

ReadMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected