Class: Innodb::DataType::FloatType
- Inherits:
-
Object
- Object
- Innodb::DataType::FloatType
- Defined in:
- lib/innodb/data_type.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(base_type, modifiers, properties) ⇒ FloatType
constructor
A new instance of FloatType.
-
#value(data) ⇒ Object
Read a little-endian single-precision floating-point number.
Constructor Details
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
62 63 64 |
# File 'lib/innodb/data_type.rb', line 62 def name @name end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
62 63 64 |
# File 'lib/innodb/data_type.rb', line 62 def width @width end |
Instance Method Details
#value(data) ⇒ Object
Read a little-endian single-precision floating-point number.
70 71 72 |
# File 'lib/innodb/data_type.rb', line 70 def value(data) BinData::FloatLe.read(data) end |