class IcAgent::Candid::IntClass
Represents an IDL Int
Public Class Methods
new()
click to toggle source
Calls superclass method
IcAgent::Candid::PrimitiveType::new
# File lib/ic_agent/candid.rb, line 354 def initialize super end
Public Instance Methods
covariant(x)
click to toggle source
# File lib/ic_agent/candid.rb, line 358 def covariant(x) x.is_a?(Integer) end
decode_value(b, t)
click to toggle source
# File lib/ic_agent/candid.rb, line 370 def decode_value(b, t) check_type(t) IcAgent::Candid.leb128i_decode(b) end
encode_type(type_table = nil)
click to toggle source
# File lib/ic_agent/candid.rb, line 366 def encode_type(type_table = nil) LEB128.encode_signed(TypeIds::Int).string end
encode_value(val)
click to toggle source
# File lib/ic_agent/candid.rb, line 362 def encode_value(val) LEB128.encode_signed(val).string end
id()
click to toggle source
# File lib/ic_agent/candid.rb, line 379 def id TypeIds::Int end
name()
click to toggle source
# File lib/ic_agent/candid.rb, line 375 def name 'int' end