Class: Ronin::Support::Binary::CTypes::IntType
- Inherits:
-
ScalarType
- Object
- Type
- ScalarType
- Ronin::Support::Binary::CTypes::IntType
- Defined in:
- lib/ronin/support/binary/ctypes/int_type.rb
Overview
Base class for all signed integer types.
Instance Attribute Summary
Attributes inherited from ScalarType
#alignment, #endian, #signed, #size
Attributes inherited from Type
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ IntType
constructor
Initializes the integer type.
-
#uninitialized_value ⇒ 0
Returns an uninitialized signed integer 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, #unpack
Constructor Details
#initialize(**kwargs) ⇒ IntType
Initializes the integer type.
45 46 47 |
# File 'lib/ronin/support/binary/ctypes/int_type.rb', line 45 def initialize(**kwargs) super(signed: true, **kwargs) end |
Instance Method Details
#uninitialized_value ⇒ 0
Returns an uninitialized signed integer value.
54 55 56 |
# File 'lib/ronin/support/binary/ctypes/int_type.rb', line 54 def uninitialized_value 0 end |