Binary and Hexadecimal String Value

Binary and hexadecimal string value specifications cause two global C variables to be generated: a numocts variable describing the length of the string and a data variable describing the string contents. The mapping for a binary string is as follows (note: BIT STRING can also be used as the type in this type of declaration):

ASN.1 production:

   <name> OCTET STRING ::= '<bstring>'B

Generated code :

   OSUINT32 <name>_numocts = <length>;
   OSOCTET <name>_data[] = <data>;

A hexadecimal string would be the same except the ASN.1 constant would end in a 'H'.