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

Chop a file or input stream into slices, using mmap when possible. More...

Public Member Functions

 stream_slicer (const std::string &fn, const size_t bs, const uint64_t startoff=0)
 
 stream_slicer (std::istream &is, const size_t bs, const uint64_t startoff=0)
 
const slice & current () const
 
bool has_data () const
 
void move (const uint64_t n)
 Move the slice forward by n bytes.
 

Detailed Description

Chop a file or input stream into slices, using mmap when possible.


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