def add_boolean(self, b):
if b:<EOL><INDENT>self.packet.write(one_byte)<EOL><DEDENT>else:<EOL><INDENT>self.packet.write(zero_byte)<EOL><DEDENT>return self<EOL>
Add a boolean value to the stream.

:param bool b: boolean value to add