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

Method encodeValue

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

Source from the content-addressed store, hash-verified

16
17class BooleanEncoder(encoder.IntegerEncoder):
18 def encodeValue(self, value, asn1Spec, encodeFun, **options):
19 if value == 0:
20 substrate = (0,)
21 else:
22 substrate = (255,)
23 return substrate, False, False
24
25
26class RealEncoder(encoder.RealEncoder):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected