Class: Ronin::Support::Binary::CTypes::UInt32Type

Inherits:
UIntType show all
Defined in:
lib/ronin/support/binary/ctypes/uint32_type.rb

Overview

Base class for all UInt32 types.

Instance Attribute Summary

Attributes inherited from ScalarType

#alignment, #endian, #signed, #size

Attributes inherited from Type

#pack_string

Instance Method Summary collapse

Methods inherited from UIntType

#uninitialized_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, #uninitialized_value, #unpack

Constructor Details

#initialize(**kwargs) ⇒ UInt32Type

Initializes the UInt32 type.

Parameters:

  • kwargs (Hash{Symbol => Object})

    Additional keyword arguments for Type#initialize.

Options Hash (**kwargs):

  • :endian (:little, :big, nil)

    The endian-ness of the integer type.

  • :pack_string (String)

    The String for Array#pack or String#unpack.



42
43
44
# File 'lib/ronin/support/binary/ctypes/uint32_type.rb', line 42

def initialize(**kwargs)
  super(signed: false, size: 4, **kwargs)
end