Class: Hexdump::Type::Float Private

Inherits:
Hexdump::Type show all
Defined in:
lib/hexdump/type.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Represents a floating point type.

Since:

  • 1.0.0

Direct Known Subclasses

Float32, Float64

Constant Summary

Constants inherited from Hexdump::Type

NATIVE_ENDIAN

Instance Attribute Summary

Attributes inherited from Hexdump::Type

#endian, #size

Instance Method Summary collapse

Methods inherited from Hexdump::Type

#signed?, #unsigned?

Constructor Details

#initialize(endian: NATIVE_ENDIAN, **kwargs) ⇒ Float

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Initializes the float type.

Parameters:

  • endian (:little, :big) (defaults to: NATIVE_ENDIAN)

    (NATIVE_ENDIAN) The endian-ness of the float type.

Since:

  • 1.0.0



210
211
212
# File 'lib/hexdump/type.rb', line 210

def initialize(endian: NATIVE_ENDIAN, **kwargs)
  super(signed: true, endian: endian, **kwargs)
end