SHORE API
|
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. | |
Chop a file or input stream into slices, using mmap when possible.