ONC+ Developer's Guide


Counted byte strings are declared as follows.

string object<m>; 


string object<>;  

The constant m denotes an upper bound of the number of bytes that a string can contain. If m is not specified, as in the second declaration, it is assumed to be (2**32) - 1, the maximum length. The constant m would normally be found in a protocol specification. For example, a filing protocol might state that a file name can be no longer than 255 bytes, as follows.

string filename<255>;