class Innodb::DataType::FloatType
Attributes
name[R]
width[R]
Public Class Methods
new(base_type, modifiers, properties)
click to toggle source
# File lib/innodb/data_type.rb, line 68 def initialize(base_type, modifiers, properties) @width = 4 @name = Innodb::DataType.make_name(base_type, modifiers, properties) end
Public Instance Methods
value(data)
click to toggle source
Read a little-endian single-precision floating-point number.
# File lib/innodb/data_type.rb, line 74 def value(data) BinData::FloatLe.read(data) end