Function slb::fileblocks::chunkify [−][src]
pub fn chunkify(
path: &Path,
max_chunks: usize,
min_size: usize
) -> Vec<FileChunk>
Expand description
Returns a list of up to max_chunks
file chunks splitting up the given
file, roughly of the same size, which should be rougly at least
min_size
, newline aligned.
Of course, the file is assumed to not be modified between the start of this method and the usage of the corresponding file chunks, else someone will panic.