Class: BinaryParser::BuiltInTemplate::UIntN

Inherits:
UInt show all
Defined in:
lib/built_in_template/uint_n.rb

Direct Known Subclasses

UInt16, UInt8

Instance Method Summary collapse

Methods inherited from UInt

#*, #+, #-, #/, #<=>, #[], #coerce, #content_description, #to_s

Methods inherited from TemplateBase

Def, #[], #binary_bit_length, #content_description, #convert_into_abstract_binary, def_structure, def_var_method, #hold_enough_binary?, #hold_just_binary?, #initialize, #load, #names, #show, structure, #structure_bit_length, #to_chars, #to_s

Constructor Details

This class inherits a constructor from BinaryParser::TemplateBase

Instance Method Details

#to_iObject



4
5
6
# File 'lib/built_in_template/uint_n.rb', line 4

def to_i
  entity.to_i
end