IBM Support

How do I change the generated ASN.1(BER) encoder/decoder variant?

Question & Answer


Question

How do I change the generated ASN.1(BER) encoder/decoder variant?

Answer

BER encoder follows the BER variant that is specified in the buffer settings. By default, BER Indefinite is set in the buffer; however, it is possible to change it by using the BufSetRule function as follows.


< initialize buffer variable buf >
BufSetRule( buf, er_BER |er_Definite );
BEREncode( buf, ... );

For more details,  go through the  help link given below

HELP Manual->Contents->User's Guide->60.ASN.1 Encoding and Decoding chapter.

TTCN SuiteTTCN_Suite-FAQ-21AnswerProduct versionPartner ContentInternal ContentCategoryReference ID
[{"Product":{"code":"SSYQGX","label":"Rational Tau"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General Information","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Historical Number

KB7030

Document Information

More support for:
Rational Tau

Software version:
Version Independent

Document number:
364335

Modified date:
16 June 2018

UID

swg21325461