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