pub fn sourcemap_to_memdb<W: Write+Seek>(sm: &SourceMap, w: W, opts: DumpOptions)
    -> Result<()>
{
    let (mut w, head) = sourcemap_to_memdb_common(sm, w, opts)?;

    // write offsets
    w.seek(SeekFrom::Start(0))?;
    write_obj(&mut w, &head)?;

    Ok(())
}
/// Serializes a map into a given writer
Serializes a map into a given writer
Serializes a map into a given writer
pub fn sourcemap_to_memdb<W: Write+Seek>(sm: &SourceMap, w: W, opts: DumpOptions)
    -> Result<()>
{
    let (mut w, head) = sourcemap_to_memdb_common(sm, w, opts)?;
    // write offsets
    w.seek(SeekFrom::Start(0))?;
    write_obj(&mut w, &head)?;
    Ok(())
}
pub fn sourcemap_to_memdb < W : Write + Seek > ( sm : & SourceMap , w : W , opts : DumpOptions ) -> Result < ( ) > { let ( mut w , head ) = sourcemap_to_memdb_common ( sm , w , opts ) ? ; // write offsets w . seek ( SeekFrom :: Start ( 0 ) ) ? ; write_obj ( & mut w , & head ) ? ; Ok ( ( ) ) }
Serializes a map into a given writer
Serializes a map into a given writer
sm
&SourceMap
w
W
opts
DumpOptions