| 44 | |
| 45 | |
| 46 | class SequenceOfOrSetOfPayloadDecoder(object): |
| 47 | def __call__(self, pyObject, asn1Spec, decodeFun=None, **options): |
| 48 | asn1Value = asn1Spec.clone() |
| 49 | |
| 50 | for pyValue in pyObject: |
| 51 | asn1Value.append(decodeFun(pyValue, asn1Spec.componentType), **options) |
| 52 | |
| 53 | return asn1Value |
| 54 | |
| 55 | |
| 56 | class ChoicePayloadDecoder(object): |