code: def add_adaptive_int(self, n):
          
          if n >= Message.big_int:
              self.packet.write(max_byte)
              self.add_string(util.deflate_long(n))
          else:
              self.packet.write(struct.pack(">I", n))
          return self
docs: Add an integer to the stream.
  
          :param int n: integer to add