libzypp
17.25.6
|
Streambuffer reading or writing zchunk files. More...
#include <ZckStream.h>
Public Types | |
using | error_type = std::string |
Public Member Functions | |
~zckstreambufimpl () | |
bool | isOpen () const |
bool | canRead () const |
bool | canWrite () const |
bool | canSeek (std::ios_base::seekdir way_r) const |
std::streamsize | readData (char *buffer_r, std::streamsize maxcount_r) |
bool | writeData (const char *buffer_r, std::streamsize count_r) |
off_t | seekTo (off_t off_r, std::ios_base::seekdir way_r, std::ios_base::openmode omode_r) |
off_t | tell () const |
error_type | error () const |
Protected Member Functions | |
bool | openImpl (const char *name_r, std::ios_base::openmode mode_r) |
bool | closeImpl () |
Private Member Functions | |
void | setError () |
Private Attributes | |
int | _fd = -1 |
bool | _isReading = false |
zckCtx * | _zContext = nullptr |
off_t | _currfp = 0 |
error_type | _lastErr |
Streambuffer reading or writing zchunk files.
Read and write mode are mutual exclusive. Seek is not supported.
This streambuf is used in ifzckstream and ofzckstream.
Definition at line 31 of file ZckStream.h.
using zypp::detail::zckstreambufimpl::error_type = std::string |
Definition at line 34 of file ZckStream.h.
zypp::detail::zckstreambufimpl::~zckstreambufimpl | ( | ) |
Definition at line 26 of file ZckStream.cc.
bool zypp::detail::zckstreambufimpl::isOpen | ( | ) | const |
Definition at line 132 of file ZckStream.cc.
bool zypp::detail::zckstreambufimpl::canRead | ( | ) | const |
Definition at line 137 of file ZckStream.cc.
bool zypp::detail::zckstreambufimpl::canWrite | ( | ) | const |
Definition at line 142 of file ZckStream.cc.
bool zypp::detail::zckstreambufimpl::canSeek | ( | std::ios_base::seekdir | way_r | ) | const |
Definition at line 147 of file ZckStream.cc.
std::streamsize zypp::detail::zckstreambufimpl::readData | ( | char * | buffer_r, |
std::streamsize | maxcount_r | ||
) |
Definition at line 104 of file ZckStream.cc.
bool zypp::detail::zckstreambufimpl::writeData | ( | const char * | buffer_r, |
std::streamsize | count_r | ||
) |
Definition at line 118 of file ZckStream.cc.
off_t zypp::detail::zckstreambufimpl::seekTo | ( | off_t | off_r, |
std::ios_base::seekdir | way_r, | ||
std::ios_base::openmode | omode_r | ||
) |
Definition at line 152 of file ZckStream.cc.
off_t zypp::detail::zckstreambufimpl::tell | ( | ) | const |
Definition at line 157 of file ZckStream.cc.
|
inline |
Definition at line 48 of file ZckStream.h.
|
protected |
Definition at line 31 of file ZckStream.cc.
|
protected |
Definition at line 77 of file ZckStream.cc.
|
private |
Definition at line 96 of file ZckStream.cc.
|
private |
Definition at line 56 of file ZckStream.h.
|
private |
Definition at line 57 of file ZckStream.h.
Definition at line 58 of file ZckStream.h.
|
private |
Definition at line 59 of file ZckStream.h.
|
private |
Definition at line 60 of file ZckStream.h.