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

Method write_bool

src/ssh_audit/writebuf.py:44–45  ·  view source on GitHub ↗
(self, v: bool)

Source from the content-addressed store, hash-verified

42 return self.write(struct.pack('B', v))
43
44 def write_bool(self, v: bool) -> 'WriteBuf':
45 return self.write_byte(1 if v else 0)
46
47 def write_int(self, v: int) -> 'WriteBuf':
48 return self.write(struct.pack('>I', v))

Callers 3

generate_kexMethod · 0.95
test_boolMethod · 0.80
writeMethod · 0.80

Calls 1

write_byteMethod · 0.95

Tested by 1

test_boolMethod · 0.64