Function fuchsia_archive::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)