resand 0.1.0

Read and write ARSC and AXML binary files used for Android Resources
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub mod defs;
pub mod res_value;
pub mod stream;
#[allow(clippy::unit_arg)]
pub mod string_pool;
#[allow(clippy::int_plus_one)]
pub mod table;
pub mod xml_names;
pub mod xmltree;

pub fn align(pos: u64, alignment: u64) -> u64 {
    let remaning = pos % alignment;
    if remaning == 0 {
        return pos;
    }

    pos + (alignment - remaning)
}