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