fuchsia_archive

Function write

Source
pub fn write(
    target: impl Write,
    path_content_map: BTreeMap<impl AsRef<[u8]>, (u64, Box<dyn Read + '_>)>,
) -> Result<(), Error>
Expand description

Write a FAR-formatted archive to the target.

ยงArguments

  • target - receives the serialized bytes of the archive
  • path_content_map - map from archive relative path to (size, contents)