21 #ifndef ZYPP_BASE_GZSTREAM_H
22 #define ZYPP_BASE_GZSTREAM_H
34 namespace gzstream_detail
93 ,
_mode( std::ios_base::openmode(0) )
94 ,
_buffer( (bufferSize_r?bufferSize_r:1), 0 )
107 {
return(
_mode == std::ios_base::in ); }
111 {
return(
_mode == std::ios_base::out ); }
114 open(
const char * name_r, std::ios_base::openmode mode_r = std::ios_base::in );
136 overflow( int_type c = traits_type::eof() );
142 seekoff( off_type off_r, std::ios_base::seekdir way_r, std::ios_base::openmode )
143 {
return seekTo( off_r, way_r ); }
146 seekpos( pos_type pos_r, std::ios_base::openmode )
147 {
return seekTo( off_type(pos_r), std::ios_base::beg ); }
171 zReadTo(
char * buffer_r, std::streamsize maxcount_r );
174 zWriteFrom(
const char * buffer_r, std::streamsize count_r );
177 zSeekTo( off_type off_r, std::ios_base::seekdir way_r );
183 seekTo( off_type off_r, std::ios_base::seekdir way_r );
198 template<
class _BStream,
class _StreamBuf>
228 this->setstate(std::ios_base::failbit);
237 this->setstate(std::ios_base::failbit);
257 std::ios_base::openmode
259 {
return std::ios_base::in; }
261 std::ios_base::openmode
263 {
return std::ios_base::out; }
286 #endif // ZYPP_BASE_GZSTREAM_H