![]() |
hamigaki::iostreams::lazy_restriction —
lazy_restriction
はboost::iostreams::restriction
の変種である。restriction
との違いは、
オフセットの基準はストリームの先頭である
オフセット位置へのシークは、実際にストリームにアクセスするまで遅延される
である。
template<typename Device> class lazy_restriction { public: // types typedef boost::iostreams::char_type_of< Device >::type char_type; // construct/copy/destruct lazy_restriction(const Device&, boost::iostreams::stream_offset, boost::iostreams::stream_offset = -1); // Boost.Iostreams implementation std::streamsize read(char_type*, std::streamsize); std::streamsize write(const char_type*, std::streamsize); std::streampos seek(boost::iostreams::stream_offset, std::ios_base::seekdir); };
Copyright © 2006 Takeshi Mouri |