SHORE API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
shore::mmapping_source Class Reference

Stream source that reads from an mmapped file. More...

Inherits device< boost::iostreams::input_seekable >.

Public Member Functions

 mmapping_source (const std::string &fn)
 
std::streamsize read (char *s, std::streamsize n)
 
std::streampos seek (boost::iostreams::stream_offset off, std::ios_base::seekdir way)
 

Detailed Description

Stream source that reads from an mmapped file.

Used when we run out of file descriptors.

Member Function Documentation

std::streamsize shore::mmapping_source::read ( char *  s,
std::streamsize  n 
)

returns the number of characters read, or -1 for eof


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