def add_boolean(self, b):
if b:<EOL><INDENT>self.add_byte('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>self.add_byte('<STR_LIT:\x00>')<EOL><DEDENT>return self<EOL>
Add a boolean value to the stream.

@param b: boolean value to add
@type b: bool