arsc 0.1.3

Android resource file parsing & writing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::components::Arsc;
use components_writing::ArscSerializable;
use std::fs::File;
use std::io::{BufWriter, Result};
use std::path::Path;

mod components_sizing;
mod components_writing;
mod with_header;
mod write_util;

pub fn write(arsc: &Arsc, output_path: &Path) -> Result<usize> {
    let mut writer = BufWriter::new(File::create(output_path)?);
    arsc.write(&mut writer)
}