pub fn sourcemap_to_memdb_vec(sm: &SourceMap, opts: DumpOptions) -> Vec<u8> {
    let mut rv = vec![];
    let (_, head) = sourcemap_to_memdb_common(sm, &mut rv, opts).unwrap();

    unsafe {
        let byte_head : *const u8 = mem::transmute(&head);
        copy_nonoverlapping(byte_head, rv.as_mut_ptr(),
                            mem::size_of_val(&head));
    }

    rv
}
/// Serializes a map into a vec
Serializes a map into a vec
Serializes a map into a vec
pub fn sourcemap_to_memdb_vec(sm: &SourceMap, opts: DumpOptions) -> Vec<u8> {
    let mut rv = vec![];
    let (_, head) = sourcemap_to_memdb_common(sm, &mut rv, opts).unwrap();
    unsafe {
        let byte_head : *const u8 = mem::transmute(&head);
        copy_nonoverlapping(byte_head, rv.as_mut_ptr(),
                            mem::size_of_val(&head));
    }
    rv
}
pub fn sourcemap_to_memdb_vec ( sm : & SourceMap , opts : DumpOptions ) -> Vec < u8 > { let mut rv = vec ! [ ] ; let ( _ , head ) = sourcemap_to_memdb_common ( sm , & mut rv , opts ) . unwrap ( ) ; unsafe { let byte_head : * const u8 = mem :: transmute ( & head ) ; copy_nonoverlapping ( byte_head , rv . as_mut_ptr ( ) , mem :: size_of_val ( & head ) ) ; } rv }
Serializes a map into a vec
Serializes a map into a vec
sm
&SourceMap
opts
DumpOptions