Named Bits

In the ASN.1 standard, it is possible to define an enumerated bit string that specifies named constants for different bit positions. ASN1C provides support for this type of construct by generating symbolic constants that can be used to set, clear, or test these named bits. These symbolic constants are simply the bit names and values in the following general form:

   public final static int <name> = <value>;

The base class contains the following methods for using these generated constants:

See the Asn1BitString class description in the run-time section for more details on these methods.