![]() |
![]() |
![]() |
![]() |
![]() |
This function converts a charstring value to an octetstring. The resulting octetstring will have the same length as the incoming charstring. The octets of the octetstring will contain the ASCII codes of the appropriate characters of the charstring.
Note: Some earlier versions of the TTCN-3 Core Language standard contained the description of function char2oct incorrectly under the name str2oct.
Related keyword:
char2oct(charstring value) return octetstring |
Example 1:
var octetstring v_myo := char2oct("Tinky-Winky");
Variable v_myo will contain '54696E6B792D57696E6B79'O.