Customer Service Center
Home
Knowledge Base
Contact Support
License Activation
|
Contact Support
|
License Activation
|
Spirent KB Article
Doc ID: FAQ17596
Printer Friendly
Email 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
Version
1.0
Publish Date
2017-03-22
Categories
Product : TTplugins,TTCN-3 Language
Related Articles