class Ronin::Support::Binary::CTypes::UIntType

Base class for all unsigned integer types.

Public Class Methods

new(**kwargs) click to toggle source

Initializes the unsigned integer type.

@param [Hash{Symbol => Object}] kwargs

Additional keyword arguments for {Type#initialize}.

@option kwargs [:little, :big, nil] :endian

The endian-ness of the unsigned integer type.

@option kwargs [String] :pack_string

The String for `Array#pack` or `String#unpack`.
# File lib/ronin/support/binary/ctypes/uint_type.rb, line 42
def initialize(**kwargs)
  super(signed: false, **kwargs)
end

Public Instance Methods

uninitialized_value() click to toggle source

Returns an uninitialized unsigned integer value.

@return [0]

# File lib/ronin/support/binary/ctypes/uint_type.rb, line 51
def uninitialized_value
  0
end