Class: Innodb::FieldType::IntegerType

Inherits:
GenericType show all
Defined in:
lib/innodb/field_type.rb

Instance Attribute Summary

Attributes inherited from GenericType

#type

Instance Method Summary collapse

Methods inherited from GenericType

#get_extern_field, #initialize, #read_extern

Constructor Details

This class inherits a constructor from Innodb::FieldType::GenericType

Instance Method Details

#read(cursor, length) ⇒ Object



31
32
33
34
# File 'lib/innodb/field_type.rb', line 31

def read(cursor, length)
  method = type.unsigned? ? :get_uint_by_size : :get_i_sint_by_size
  cursor.send(method, type.length)
end