Class: Hexdump::Type::UInt 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 unsigned integer type.

Since:

  • 1.0.0

Direct Known Subclasses

UInt16, UInt32, UInt64, UInt8

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

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

Parameters:

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

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

Since:

  • 1.0.0



137
138
139
# File 'lib/hexdump/type.rb', line 137

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