vendor/bundle/ruby/2.7.0/gems/dnsruby-1.61.5/lib/dnsruby/message/decoder.rb
# Asserts that the specified position is a valid position in the buffer.
# If not, raises a DecodeError.  If so, does nothing.
Asserts that the specified position is a valid position in the buffer.
If not, raises a DecodeError.  If so, does nothing.
Asserts that the specified position is a valid position in the buffer . If not raises a DecodeError . If so does nothing .
def assert_buffer_position_valid(end_position)
    unless (0..@limit).include?(end_position)
      raise DecodeError.new("requested position of #{end_position} must be between 0 and buffer size (#{@limit}).")
    end
  end
def assert_buffer_position_valid ( end_position ) unless ( 0 .. @limit ) . include? ( end_position ) raise DecodeError . new ( "requested position of #{end_position} must be between 0 and buffer size (#{@limit})." ) end end
Asserts that the specified position is a valid position in the buffer.
Asserts that the specified position is a valid position in the buffer .
end_position
<not_specific>