aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Zongheng Yang <zongheng@google.com>2016-09-22 09:01:50 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-09-22 10:16:19 -0700
commit3b2511b6d084c4e8dddcb32441ea8bed2f3b25db (patch)
tree73d70e5415ee05119ae826d1d80af12489cc9711
parenta3c34f649d6f3d6c188cc59fe884facf4aad117e (diff)
io::InputBuffer: add file().
Change: 133966042
-rw-r--r--tensorflow/core/lib/io/inputbuffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tensorflow/core/lib/io/inputbuffer.h b/tensorflow/core/lib/io/inputbuffer.h
index 02dfda74e3..94a8cfd39b 100644
--- a/tensorflow/core/lib/io/inputbuffer.h
+++ b/tensorflow/core/lib/io/inputbuffer.h
@@ -73,6 +73,9 @@ class InputBuffer {
// Returns the position in the file.
int64 Tell() const { return file_pos_ - (limit_ - pos_); }
+ // Returns the underlying RandomAccessFile.
+ RandomAccessFile* file() const { return file_; }
+
private:
Status FillBuffer();