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

Method encodeValue

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

Source from the content-addressed store, hash-verified

732
733class 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
743TAG_MAP = {

Callers

nothing calls this directly

Calls 3

asOctetsMethod · 0.45
cloneMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected