# File lib/net/dns/rr.rb, line 183 def comp_data(offset,compnames) type,cls = @type.to_i, @cls.to_i str,offset,names = dn_comp(@name,offset,compnames) str += [type,cls,@ttl,@rdlength].pack("n2 N n") offset += Net::DNS::RRFIXEDSZ return str,offset,names end