X.690 エンコーディングに基づいて、データ構造内に存在するパラメータをエンコードする必要があります。私の構造は次のとおりです。
struct Data_Struct
{
parameter1
parameter2
parameter3
}
これらのパラメータの一部またはすべてが有効なデータを持っている可能性がありparameter1
ますparameter3
。次に、 TLVエンコーディングのみparameter1
を使用してエンコードすることになっています。parameter3
これに従うには、一連の手順に従う必要がありますか。お気に入り、
Check whether parameter 1 is present
If present, find the tag of the parameter from a lookup table and encode it
Check whether parameter 2 is present
If present, find the tag of the parameter from a lookup table and encode it
Check whether parameter 3 is present
If present, find the tag of the parameter from a lookup table and encode it
- 手順が繰り返されるため、モジュール化できますか?
- それを行うための最良の方法は何ですか?
- パラメータに順番にアクセスする方法はありますか?
- パラメータとそのタグの間に関係を持たせるにはどうすればよいですか?
値の長さは可変です。