method
put_labels
put_labels(d)
public
Hide source
# File lib/resolv.rb, line 1358 def put_labels(d) d.each_index {|i| domain = d[i..-1] if idx = @names[domain] self.put_pack("n", 0xc000 | idx) return else @names[domain] = @data.length self.put_label(d[i]) end } @data << "\00"" end