code: def writeInteger(self, n):
          
          if n < MIN_29B_INT or n > MAX_29B_INT:
              self.writeNumber(float(n))
  
              return
  
          self.stream.write(TYPE_INTEGER)
          self.stream.write(encode_int(n))
docs: Writes an integer to the stream.
  
          @type   n: integer data
          @param  n: The integer data to be encoded to the AMF3 data stream.