| 31 | |
| 32 | |
| 33 | class 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 | |
| 46 | class SequenceOfOrSetOfPayloadDecoder(object): |