MCPcopy
hub / github.com/jtesta/ssh-audit / write_mpint2

Method write_mpint2

src/ssh_audit/writebuf.py:90–93  ·  view source on GitHub ↗
(self, n: int)

Source from the content-addressed store, hash-verified

88 return self.write(data)
89
90 def write_mpint2(self, n: int) -> 'WriteBuf':
91 # NOTE: Section 5 @ https://www.ietf.org/rfc/rfc4251.txt
92 data = self._create_mpint(n)
93 return self.write_string(data)
94
95 def write_line(self, v: Union[bytes, str]) -> 'WriteBuf':
96 if not isinstance(v, bytes):

Callers 2

test_mpint2Method · 0.80
send_initMethod · 0.80

Calls 2

_create_mpintMethod · 0.95
write_stringMethod · 0.95

Tested by 1

test_mpint2Method · 0.64