Hole-Punch
A (wip) dead simple, cross platform crate for finding the locations of holes in sparse files.
Currently only supports Unix, but Windows support is coming soon.
Usage
use File;
use *;
let mut file = open;
let segments = file.scan_chunks.expect;
for segment in segement
License
Hole-Punch is distrubited under your choice of the MIT license, or Apache Version 2.0.
TO-DOs
The following features are on my "to implement" list, in order of importance:
- Windows support
- Fallback mode (reading the entire file manually looking for chunks of 0s)