TOC PREV NEXT INDEX


Binary String Value Specification



This value specification causes two Java constants to be generated: a `numbits' constant specifying the number of bits in the string and a `data' constant that hold the actual bit values.


ASN.1 production:

	<name> BIT STRING ::= `bbbbbbb'B
 

Generated Java constants:

	public static final int <name>_numbits = <numbits>;
 
	public static final byte[] <name>_data = { 0xhh, 0xhh, ... };
 

In the ASN.1 production definition, the lowercase `b's above represent binary digits (1's or 0's). The generated code contains a numbits constant set to the number of bits (binary digits) in the string. The data constant specifies the binary data using hexadecimal byte values.



Objective Systems, Inc.

102 Pickering Way, Suite #506
Exton, Pennsylvania 19341
http://www.obj-sys.com
Phone: (484) 875-9841
Toll-free: (877) 307-6855 (US only)
Fax: (484) 875-9830
info@obj-sys.com
TOC PREV NEXT INDEX