method
put_length16
put_length16()
public
Hide source
# File lib/resolv.rb, line 1477 def put_length16 length_index = @data.length @data << "\00\\00"" data_start = @data.length yield data_end = @data.length @data[length_index, 2] = [data_end - data_start].pack("n") end