image_index.rs:write idx of chunks (use mmap)

This commit is contained in:
Dietmar Maurer
2018-12-15 14:51:05 +01:00
parent f8838fe913
commit 606ce64bb0
5 changed files with 105 additions and 6 deletions

View File

@ -58,9 +58,9 @@ pub fn file_set_contents<P: AsRef<Path>>(
pub fn file_chunker<C, R>(
mut file: R,
chunk_size: usize,
chunk_cb: C
mut chunk_cb: C
) -> Result<(), Error>
where C: Fn(usize, &[u8]) -> Result<bool, Error>,
where C: FnMut(usize, &[u8]) -> Result<bool, Error>,
R: Read,
{