MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / __call__

Method __call__

pager_lib/pyasn1/codec/native/decoder.py:57–67  ·  view source on GitHub ↗
(self, pyObject, asn1Spec, decodeFun=None, **options)

Source from the content-addressed store, hash-verified

55
56class ChoicePayloadDecoder(object):
57 def __call__(self, pyObject, asn1Spec, decodeFun=None, **options):
58 asn1Value = asn1Spec.clone()
59
60 componentsTypes = asn1Spec.componentType
61
62 for field in pyObject:
63 if field in componentsTypes:
64 asn1Value[field] = decodeFun(pyObject[field], componentsTypes[field].asn1Object, **options)
65 break
66
67 return asn1Value
68
69
70TAG_MAP = {

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected