Google

LINK="#0000bb" VLINK="#551a8b" ALINK="#ff0000">

Objects of variable-structure BER facility classes

Instances of OrderedVariableTypeAsn1Object, UnorderedVariableTypeAsn1Object and classes implement the following public methods:

encode([args])

Returns BER-encoded contents of the structured ASN.1 object (as string).

The optional args argument (a list of ASN.1 class instances) may be used to assign a new value to this ASN.1 object prior to running BER encoding method against this ASN.1 object. The value of args should be acceptable by the ASN.1 object class this BER facility is mixed with.

decode(octetStream)

Decodes octetStream (string) into the payload of the ASN.1 object and returns the unprocessed part of the octetStream (as string).


ilya@glas.net