# File lib/ipaddress/ipv4.rb, line 242
    def hex(space=true)
      "%.4x%.4x" % [to_u32].pack("N").unpack("nn")
    end