A few bugs in RecordIO
Created by: JiayiFeng
readsome
can only read a file from the buffer. But here is the first time we read from is
, so it is possible that the file is not in the buffer and we can read nothing.
Before seekg()
, we shall invoke stream_->clear()
to clear steam's flags.