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

Class SequenceOrSetPayloadDecoder

pager_lib/pyasn1/codec/native/decoder.py:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32
33class SequenceOrSetPayloadDecoder(object):
34 def __call__(self, pyObject, asn1Spec, decodeFun=None, **options):
35 asn1Value = asn1Spec.clone()
36
37 componentsTypes = asn1Spec.componentType
38
39 for field in asn1Value:
40 if field in pyObject:
41 asn1Value[field] = decodeFun(pyObject[field], componentsTypes[field].asn1Object, **options)
42
43 return asn1Value
44
45
46class SequenceOfOrSetOfPayloadDecoder(object):

Callers 1

decoder.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected