/// Appends a few inert bytes to the provided Wasm. Results in a functionally
/// identical binary.
Appends a few inert bytes to the provided Wasm. Results in a functionally
identical binary.
Appends a few inert bytes to the provided Wasm . Results in a functionally identical binary .
pub fn append_inert(wasm: Option<&Wasm>) -> Wasm {
    let mut wasm = wasm.unwrap().clone().bytes();
    // This sequence of bytes encodes an empty wasm custom section
    // named "a". It is harmless to suffix any wasm with it, even multiple
    // times.
    wasm.append(&mut vec![0, 2, 1, 97]);
    Wasm::from_bytes(wasm)
}
pub fn append_inert ( wasm : Option < & Wasm > ) -> Wasm { let mut wasm = wasm . unwrap ( ) . clone ( ) . bytes ( ) ; // This sequence of bytes encodes an empty wasm custom section // named "a". It is harmless to suffix any wasm with it, even multiple // times. wasm . append ( & mut vec ! [ 0 2 1 97 ] ) ; Wasm :: from_bytes ( wasm ) }
Appends a few inert bytes to the provided Wasm.
Appends a few inert bytes to the provided Wasm .
wasm
Option<&Wasm>