code: def write_bit(self, b, pack=Struct('B').pack):
          '''
          Write a single bit. Convenience method for single bit args.
          '''
          self._output_buffer.append(pack(True if b else False))
          return self write_bit(self, b, pack=Struct('B').pack):
          '''
          Write a single bit. Convenience method for single bit args.
          '''
          self._output_buffer.append(pack(True if b else False))
          return self
docs: Write a single bit. Convenience method for single bit args.