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

Method encode

pager_lib/pyasn1/codec/native/encoder.py:98–103  ·  view source on GitHub ↗
(self, value, encodeFun, **options)

Source from the content-addressed store, hash-verified

96
97class SequenceOfEncoder(AbstractItemEncoder):
98 def encode(self, value, encodeFun, **options):
99 inconsistency = value.isInconsistent
100 if inconsistency:
101 raise error.PyAsn1Error(
102 f"ASN.1 object {value.__class__.__name__} is inconsistent")
103 return [encodeFun(x, **options) for x in value]
104
105
106class ChoiceEncoder(SequenceEncoder):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected