27 : std::istream(this), _stream(stream), _mode(mode), data_buf_(buffer), data_size_(buffer)
31 setp(&data_buf_[0], &data_buf_[0] + data_size_ - 1);
40 _stream.read(&data_buf_[0], data_size_);
41 int bytes = _stream.gcount();
45 return std::char_traits<char>::eof();
50 setg(&data_buf_[0], &data_buf_[0], &data_buf_[0] + bytes);
52 return std::char_traits<char>::not_eof(data_buf_[0]);