... | @@ -70,11 +70,11 @@ buffer and vice versa: we will see in the several examples below how to use the |
... | @@ -70,11 +70,11 @@ buffer and vice versa: we will see in the several examples below how to use the |
|
There is also the possibility to generate the exact binary structures corresponding
|
|
There is also the possibility to generate the exact binary structures corresponding
|
|
to those encoding and decoding, making use of basic pycrate core objects (mostly Int,
|
|
to those encoding and decoding, making use of basic pycrate core objects (mostly Int,
|
|
Uint, Buf and Envelope). This is done by adding the *_ws* suffixes to encoding and decoding
|
|
Uint, Buf and Envelope). This is done by adding the *_ws* suffixes to encoding and decoding
|
|
methods: *to_[bcdp]er_ws()* and *from_[bcdp]er()*.
|
|
methods: *to_[bcdp]er_ws()* and *from_[bcdp]er_ws()*.
|
|
|
|
|
|
This will generate a master Envelope object under the attribute *_struct* of the encoded
|
|
This will generate a master Envelope object under the attribute *_struct* of the encoded
|
|
or decoded object, which will demonstrate the exact structure of the transfer syntax.
|
|
or decoded object, which will demonstrate the exact structure of the transfer syntax.
|
|
Here is an example with a TCAP-MAP case:
|
|
Here is an example with the TCAP-MAP case:
|
|
|
|
|
|
>>> from pycrate_asn1dir import TCAP_MAP
|
|
>>> from pycrate_asn1dir import TCAP_MAP
|
|
>>> M = TCAP_MAP.TCAP_MAP_Messages.TCAP_MAP_Message
|
|
>>> M = TCAP_MAP.TCAP_MAP_Messages.TCAP_MAP_Message
|
... | @@ -336,7 +336,7 @@ Here is an example with a TCAP-MAP case: |
... | @@ -336,7 +336,7 @@ Here is an example with a TCAP-MAP case: |
|
<V : 0x917267415827f2>
|
|
<V : 0x917267415827f2>
|
|
|
|
|
|
You should not use those extended methods for standard ASN.1 processing, but only
|
|
You should not use those extended methods for standard ASN.1 processing, but only
|
|
for debugging purpose, as they render the encoding and decoding process much slower.
|
|
for debugging purpose, as they are making the encoding and decoding process much slower.
|
|
You have been warned !
|
|
You have been warned !
|
|
|
|
|
|
|
|
|
... | | ... | |