util::ReadCompressed Class Reference

#include <read_compressed.hh>

Collaboration diagram for util::ReadCompressed:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Definition at line 38 of file read_compressed.hh.


Constructor & Destructor Documentation

util::ReadCompressed::ReadCompressed ( int  fd  )  [explicit]

Definition at line 410 of file read_compressed.cc.

References Reset().

Here is the call graph for this function:

util::ReadCompressed::ReadCompressed ( std::istream &  in  )  [explicit]

Definition at line 414 of file read_compressed.cc.

References Reset().

Here is the call graph for this function:

util::ReadCompressed::ReadCompressed (  ) 

Definition at line 418 of file read_compressed.cc.

util::ReadCompressed::~ReadCompressed (  ) 

Definition at line 420 of file read_compressed.cc.


Member Function Documentation

bool util::ReadCompressed::DetectCompressedMagic ( const void *  from  )  [static]

Definition at line 406 of file read_compressed.cc.

References kMagicSize.

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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void util::ReadCompressed::Reset ( std::istream &  in  ) 

Definition at line 428 of file read_compressed.cc.

References util::scoped_base< T, Closer >::reset().

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class ReadBase [friend]

Definition at line 71 of file read_compressed.hh.


Member Data Documentation

const std::size_t util::ReadCompressed::kMagicSize = 6 [static]

Definition at line 40 of file read_compressed.hh.

Referenced by DetectCompressedMagic().


The documentation for this class was generated from the following files:

Generated on Thu Jul 6 00:34:51 2017 for Moses by  doxygen 1.5.9