Class: Hexdump::Type::Int 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 signed integer type.

Since:

  • 1.0.0

Direct Known Subclasses

Int16, Int32, Int64, Int8

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) ⇒ Int

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 int type.

Parameters:

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

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

Since:

  • 1.0.0



76
77
78
# File 'lib/hexdump/type.rb', line 76

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