class SNMP::Counter64

Public Class Methods

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

Public Instance Methods

asn1_type() click to toggle source
# File lib/snmp/varbind.rb, line 438
def asn1_type
  "Counter64"
end
encode() click to toggle source
# File lib/snmp/varbind.rb, line 448
def encode
  encode_tagged_integer(Counter64_TAG, @value)
end