The ASN.1 BOOLEAN type is converted into a C type named OSBOOL. In the global include file osSysTypes.h, OSBOOL is defined to be
an unsigned char
.
ASN.1 production:
<name> ::= BOOLEAN
Generated C code:
typedef OSBOOL <name>;
Generated C++ code:
typedef OSBOOL ASN1T_<name>;
For example, if B ::= [PRIVATE 10] BOOLEAN
was defined as an ASN.1
production, the generated C type definition would be typedef OSBOOL B
. Note
that the tag information is not represented in the type definition. It is handled within
the generated encode/decode functions.
The only difference between the C and C++ mapping is the addition of the
ASN1T_
prefix on the C++ type.