Printer FriendlyEmail Article Link

TTworkbench: How can I access the length of my TTCN-3 type in the codec(CD)?

Environment/Versions
TTworkbench 32/64 Linux/Windows
Answer
Use the method getLengthRestriction as in the following example

Example:
OctetstringValue data1 = (OctetstringValue) value.getField("data1");
data1.getLengthRestriction();

More information about getLengthRestriction can be found in the TTCN-3 standard:

https://www.etsi.org/deliver/etsi_es/201800_201899/20187306/04.07.01_60/es_20187306v040701p.pdf
 

Product : TTplugins,TTCN-3 Language