ewasm 0.2.3

A modular WebAssembly runtime for Ethereum 2.0.
Documentation
1
2
3
4
5
6
7
8
9
pub fn escape(bytes: &[u8]) -> String {
    let mut output = String::with_capacity(bytes.len() * 4);

    for byte in bytes {
        output.push_str(&format!(r#"\{:02x}"#, byte));
    }

    output
}