Skip to main content

wasm_binary_size

Function wasm_binary_size 

Source
pub fn wasm_binary_size(bytes: &[u8]) -> usize
Expand description

Returns the size, in bytes, of the wasm module in bytes.

This excludes custom sections to avoid counting easily strippable sections such as debuginfo.