#include <read_compressed.hh>
Public Member Functions | |
ReadCompressed (int fd) | |
ReadCompressed (std::istream &in) | |
ReadCompressed () | |
~ReadCompressed () | |
void | Reset (int fd) |
void | Reset (std::istream &in) |
std::size_t | Read (void *to, std::size_t amount) |
std::size_t | ReadOrEOF (void *const to, std::size_t amount) |
uint64_t | RawAmount () const |
Static Public Member Functions | |
static bool | DetectCompressedMagic (const void *from) |
Static Public Attributes | |
static const std::size_t | kMagicSize = 6 |
Friends | |
class | ReadBase |
Definition at line 38 of file read_compressed.hh.
util::ReadCompressed::ReadCompressed | ( | int | fd | ) | [explicit] |
Definition at line 410 of file read_compressed.cc.
References Reset().
util::ReadCompressed::ReadCompressed | ( | std::istream & | in | ) | [explicit] |
Definition at line 414 of file read_compressed.cc.
References Reset().
util::ReadCompressed::ReadCompressed | ( | ) |
Definition at line 418 of file read_compressed.cc.
util::ReadCompressed::~ReadCompressed | ( | ) |
Definition at line 420 of file read_compressed.cc.
bool util::ReadCompressed::DetectCompressedMagic | ( | const void * | from | ) | [static] |
uint64_t util::ReadCompressed::RawAmount | ( | ) | const [inline] |
Definition at line 68 of file read_compressed.hh.
std::size_t util::ReadCompressed::Read | ( | void * | to, | |
std::size_t | amount | |||
) |
Definition at line 433 of file read_compressed.cc.
Referenced by ReadOrEOF(), and util::stream::LineInput::Run().
std::size_t util::ReadCompressed::ReadOrEOF | ( | void *const | to, | |
std::size_t | amount | |||
) |
Definition at line 437 of file read_compressed.cc.
References Read().
Referenced by main().
void util::ReadCompressed::Reset | ( | std::istream & | in | ) |
Definition at line 428 of file read_compressed.cc.
References util::scoped_base< T, Closer >::reset().
void util::ReadCompressed::Reset | ( | int | fd | ) |
Definition at line 422 of file read_compressed.cc.
References NULL, and util::scoped_base< T, Closer >::reset().
Referenced by util::FilePiece::FilePiece(), and ReadCompressed().
friend class ReadBase [friend] |
Definition at line 71 of file read_compressed.hh.
const std::size_t util::ReadCompressed::kMagicSize = 6 [static] |