Method
encodeValue
(self, value, asn1Spec, encodeFun, **options)
Source from the content-addressed store, hash-verified
| 732 | |
| 733 | class AnyEncoder(OctetStringEncoder): |
| 734 | def encodeValue(self, value, asn1Spec, encodeFun, **options): |
| 735 | if asn1Spec is None: |
| 736 | value = value.asOctets() |
| 737 | elif not isinstance(value, bytes): |
| 738 | value = asn1Spec.clone(value).asOctets() |
| 739 | |
| 740 | return value, not options.get('defMode', True), True |
| 741 | |
| 742 | |
| 743 | TAG_MAP = { |
Callers
nothing calls this directly
Tested by
no test coverage detected