Instances of these classes have the following methods:
The encode method converts the content of the class instance into BER octet-stream (string).
The value parameter, whenever given for last-minute payload assignment to class instance, must be:
The decode method attempts to convert the data octet-stream (string) into an integer value of the following flavor:
This method returns a tuple of (a_class_instance, rest), where rest (string) holds the rest of unprocessed input data.
The data octet-stream must carry an ASN.1 value which type matches class dedication or an error.TypeError exception would be thrown.
The update method assigns the value to class instance payload.
The value parameter must be:
Class instance invocation would return currently stored payload.
Class instances may be compared against each other. The comparation would return negative if other is greater, zero on equivalence, positive if other is less.
Returns the canonical string representation of the class instance.
Returns a nice string representation of the class instance.