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

Method encodeValue

pager_lib/pyasn1/codec/cer/encoder.py:133–141  ·  view source on GitHub ↗
(self, value, asn1Spec, encodeFun, **options)

Source from the content-addressed store, hash-verified

131
132class SequenceOfEncoder(encoder.SequenceOfEncoder):
133 def encodeValue(self, value, asn1Spec, encodeFun, **options):
134
135 if options.get('ifNotEmpty', False) and not len(value):
136 return b'', True, True
137
138 chunks = self._encodeComponents(
139 value, asn1Spec, encodeFun, **options)
140
141 return b''.join(chunks), True, True
142
143
144class SetEncoder(encoder.SequenceEncoder):

Callers

nothing calls this directly

Calls 2

_encodeComponentsMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected