fn pack_header_id<W: Write>(
    header_id: &HeaderId,
    codec: &mut Codec<W>
) -> Result<(), WriteError>