Class: Ronin::Support::Binary::CTypes::FloatType
- Inherits:
-
ScalarType
- Object
- Type
- ScalarType
- Ronin::Support::Binary::CTypes::FloatType
- Defined in:
- lib/ronin/support/binary/ctypes/float_type.rb
Overview
Base class for all floating-point types.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from ScalarType
#alignment, #endian, #signed, #size
Attributes inherited from Type
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ FloatType
constructor
Initializes the float type.
-
#uninitialized_value ⇒ 0.0
Returns an uninitialized Float value.
Methods inherited from ScalarType
#align, #dequeue_value, #enqueue_value, #pack, #signed?, #unpack, #unsigned?
Methods inherited from Type
#[], #align, #alignment, #dequeue_value, #enqueue_value, #pack, #size, #unpack
Constructor Details
#initialize(**kwargs) ⇒ FloatType
Initializes the float type.
45 46 47 |
# File 'lib/ronin/support/binary/ctypes/float_type.rb', line 45 def initialize(**kwargs) super(signed: true, **kwargs) end |
Instance Method Details
#uninitialized_value ⇒ 0.0
Returns an uninitialized Float value.
54 55 56 |
# File 'lib/ronin/support/binary/ctypes/float_type.rb', line 54 def uninitialized_value 0.0 end |