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

Method write_flush

src/ssh_audit/writebuf.py:101–105  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

99 return self.write(v)
100
101 def write_flush(self) -> bytes:
102 payload = self._wbuf.getvalue()
103 self._wbuf.truncate(0)
104 self._wbuf.seek(0)
105 return payload
106
107 def reset(self) -> None:
108 self._wbuf = io.BytesIO()

Callers 15

payloadMethod · 0.95
generate_kexMethod · 0.95
payloadMethod · 0.95
read_packetMethod · 0.95
_get_kexMethod · 0.80
test_unreadMethod · 0.80
test_byteMethod · 0.80
test_boolMethod · 0.80
test_intMethod · 0.80
test_stringMethod · 0.80
test_listMethod · 0.80
test_lineMethod · 0.80

Calls

no outgoing calls

Tested by 15

_get_kexMethod · 0.64
test_unreadMethod · 0.64
test_byteMethod · 0.64
test_boolMethod · 0.64
test_intMethod · 0.64
test_stringMethod · 0.64
test_listMethod · 0.64
test_lineMethod · 0.64
test_mpint1Method · 0.64
test_mpint2Method · 0.64
test_resetMethod · 0.64
_kex_payloadMethod · 0.64