fn pack_entry<W: Write>(
    entry: &Entry<'_>,
    codec: &mut Codec<W>
) -> Result<(), WriteError>