fn pack_globals<W: Write>(
    globals: &Globals,
    codec: &mut Codec<W>
) -> Result<(), WriteError>