SHORE API
|
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) |
Stream source that reads from an mmapped file.
Used when we run out of file descriptors.
std::streamsize shore::mmapping_source::read | ( | char * | s, |
std::streamsize | n | ||
) |
returns the number of characters read, or -1 for eof