[][src]Function ub::serialize::write

pub fn write<W: Write + Seek, R: Read, F: Fn(&Path) -> Result<R, Error>, P: AsRef<Path>>(
    paths: &[P],
    dest: W,
    open: F
) -> Result<(), Error>

Bundle data from paths opened using the open function, and used to write to dest. open can be used to preprocess files without using files to store temporary data; everything can be in memory. paths order will be the same as in the resulting bundle. dest should not be buffered; only large chunks are written.

Errors

This function will try to read from the supplied Read from open function. Then it will write to dest and Write::flush() it.