class SNMP::UnsignedInteger

Public Class Methods

decode(value_data) click to toggle source
# File lib/snmp/varbind.rb, line 356
def self.decode(value_data)
  self.new(decode_uinteger_value(value_data))
end
new(value) click to toggle source
Calls superclass method SNMP::Integer.new
# File lib/snmp/varbind.rb, line 350
def initialize(value)
  super(value)
  raise ArgumentError, "Negative integer invalid: #{@value}" if @value < 0
  raise ArgumentError, "Out of range: #{@value}" if @value > 4294967295
end