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

Method asBinary

pager_lib/pyasn1/type/univ.py:557–561  ·  view source on GitHub ↗

Get |ASN.1| value as a text string of bits.

(self)

Source from the content-addressed store, hash-verified

555 return self._value
556
557 def asBinary(self):
558 """Get |ASN.1| value as a text string of bits.
559 """
560 binString = bin(self._value)[2:]
561 return '0' * (len(self._value) - len(binString)) + binString
562
563 @classmethod
564 def fromHexString(cls, value, internalFormat=False, prepend=None):

Callers 1

__str__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected