Function allocate_mappings

Source
#[unsafe(no_mangle)]
pub extern "C" fn allocate_mappings(size: usize) -> *mut u8
Expand description

Allocate space for a mappings string of the given size (in bytes).

It is the JS callers responsibility to initialize the resulting buffer by copying the JS String holding the source map’s “mappings” into it (encoded in ascii).