Class: RMasm::DWord
- Defined in:
- lib/rmasm/primitive.rb
Overview
Represents a dword (32 bits)
Constant Summary collapse
- MIN =
-2147483648
- MAX =
4294967295
Instance Attribute Summary
Attributes inherited from Primitive
Class Method Summary collapse
Methods inherited from Primitive
Methods inherited from DataType
Class Method Details
.from_str(str) ⇒ Object
129 130 131 |
# File 'lib/rmasm/primitive.rb', line 129 def self.from_str(str) str.unpack("V*") end |
.range ⇒ Object
123 124 125 |
# File 'lib/rmasm/primitive.rb', line 123 def self.range return MIN..MAX end |
.sizeof ⇒ Object
126 127 128 |
# File 'lib/rmasm/primitive.rb', line 126 def self.sizeof 4 end |
.to_s ⇒ Object
132 133 134 |
# File 'lib/rmasm/primitive.rb', line 132 def self.to_s "dword" end |