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

Method asOctets

pager_lib/pyasn1/type/univ.py:544–550  ·  view source on GitHub ↗

Get |ASN.1| value as a sequence of octets. If |ASN.1| object length is not a multiple of 8, result will be left-padded with zeros.

(self)

Source from the content-addressed store, hash-verified

542 return tuple(self.asOctets())
543
544 def asOctets(self):
545 """Get |ASN.1| value as a sequence of octets.
546
547 If |ASN.1| object length is not a multiple of 8, result
548 will be left-padded with zeros.
549 """
550 return integer.to_bytes(self._value, length=len(self))
551
552 def asInteger(self):
553 """Get |ASN.1| value as a single integer value.

Callers 10

asNumbersMethod · 0.95
asSeekableStreamFunction · 0.45
valueDecoderMethod · 0.45
indefLenValueDecoderMethod · 0.45
encodeValueMethod · 0.45
encodeValueMethod · 0.45
encodeValueMethod · 0.45
encodeMethod · 0.45
encodeMethod · 0.45
prettyInMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected