Class: Ronin::Arch
Included Modules
Ronin::Model, DataMapper::Predefined
Constants Included from Ronin::Model
Public Visibility
Public Class Method Summary
| address_length(repository = nil) |
Address length of the architecture. |
|---|---|
| arm_be |
The ARM (big-endian) Architecture. |
| arm_le |
The ARM (little-endian) Architecture. |
| endian(repository = nil) |
Endianness of the architecture. |
| i386 |
The i386 Architecture. |
| i486 |
The i486 Architecture. |
| i686 |
The i686 Architecture. |
| i986 |
The i986 Architecture. |
| ia64 |
The ia64 Architecture. |
| id(repository = nil) |
Primary key. |
| mips_be |
The MIPS (big-endian) Architecture. |
| mips_le |
The MIPS (little-endian) Architecture. |
| name(repository = nil) |
Name of the architecture. |
| ppc |
The 32-bit PowerPC Architecture. |
| ppc64 |
The 64-bit PowerPC Architecture. |
| predefine(name, options = {}) |
Defines a new builtin Arch with the specified name and the given. |
| sparc |
The 32-bit SPARC Architecture. |
| sparc64 |
The 64-bit SPARC Architecture. |
| x86_64 |
The x86_64 Architecture. |
Public Instance Method Summary
| #address_length |
Address length of the architecture. |
|---|---|
| #address_length=(value) |
Address length of the architecture. |
| #endian |
Endianness of the architecture. |
| #endian=(value) |
Endianness of the architecture. |
| #id |
Primary key. |
| #id=(value) |
Primary key. |
| #name |
Name of the architecture. |
| #name=(value) |
Name of the architecture. |
| #to_s |
Converts the architecture to a String. Returns: String |
Public Instance Methods Included from Ronin::Model
Public Class Method Details
address_length
Address length of the architecture
43 |
# File 'lib/ronin/arch.rb', line 43 property :address_length, Integer |
arm_be
The ARM (big-endian) Architecture
129 |
# File 'lib/ronin/arch.rb', line 129 predefine :arm_be, :endian => :big, :address_length => 4 |
arm_le
The ARM (little-endian) Architecture
126 |
# File 'lib/ronin/arch.rb', line 126 predefine :arm_le, :endian => :little, :address_length => 4 |
endian
Endianness of the architecture
40 |
# File 'lib/ronin/arch.rb', line 40 property :endian, String |
i386
The i386 Architecture
90 |
# File 'lib/ronin/arch.rb', line 90 predefine :i386, :endian => :little, :address_length => 4 |
i486
The i486 Architecture
93 |
# File 'lib/ronin/arch.rb', line 93 predefine :i486, :endian => :little, :address_length => 4 |
i686
The i686 Architecture
96 |
# File 'lib/ronin/arch.rb', line 96 predefine :i686, :endian => :little, :address_length => 4 |
i986
The i986 Architecture
99 |
# File 'lib/ronin/arch.rb', line 99 predefine :i986, :endian => :little, :address_length => 4 |
ia64
The ia64 Architecture
105 |
# File 'lib/ronin/arch.rb', line 105 predefine :ia64, :endian => :little, :address_length => 8 |
id
Primary key
34 |
# File 'lib/ronin/arch.rb', line 34 property :id, Serial |
mips_be
The MIPS (big-endian) Architecture
123 |
# File 'lib/ronin/arch.rb', line 123 predefine :mips_be, :endian => :big, :address_length => 4 |
mips_le
The MIPS (little-endian) Architecture
120 |
# File 'lib/ronin/arch.rb', line 120 predefine :mips_le, :endian => :little, :address_length => 4 |
name
Name of the architecture
37 |
# File 'lib/ronin/arch.rb', line 37 property :name, String |
ppc
The 32-bit PowerPC Architecture
108 |
# File 'lib/ronin/arch.rb', line 108 predefine :ppc, :endian => :big, :address_length => 4 |
ppc64
The 64-bit PowerPC Architecture
111 |
# File 'lib/ronin/arch.rb', line 111 predefine :ppc64, :endian => :big, :address_length => 8 |
predefine
Defines a new builtin Arch with the specified name and the given options.
85 86 87 |
# File 'lib/ronin/arch.rb', line 85 def self.predefine(name,={}) super(name,.merge(:name => name)) end |
sparc
The 32-bit SPARC Architecture
114 |
# File 'lib/ronin/arch.rb', line 114 predefine :sparc, :endian => :big, :address_length => 4 |
sparc64
The 64-bit SPARC Architecture
117 |
# File 'lib/ronin/arch.rb', line 117 predefine :sparc64, :endian => :big, :address_length => 8 |
x86_64
The x86_64 Architecture
102 |
# File 'lib/ronin/arch.rb', line 102 predefine :x86_64, :endian => :little, :address_length => 8 |
Public Instance Method Details
address_length
Address length of the architecture
43 |
# File 'lib/ronin/arch.rb', line 43 property :address_length, Integer |
address_length=
Address length of the architecture
43 |
# File 'lib/ronin/arch.rb', line 43 property :address_length, Integer |
endian
Endianness of the architecture
40 |
# File 'lib/ronin/arch.rb', line 40 property :endian, String |
endian=
Endianness of the architecture
40 |
# File 'lib/ronin/arch.rb', line 40 property :endian, String |
id
id=
Primary key
34 |
# File 'lib/ronin/arch.rb', line 34 property :id, Serial |
name
Name of the architecture
37 |
# File 'lib/ronin/arch.rb', line 37 property :name, String |
name=
Name of the architecture
37 |
# File 'lib/ronin/arch.rb', line 37 property :name, String |
to_s
Converts the architecture to a String.
59 60 61 |
# File 'lib/ronin/arch.rb', line 59 def to_s self.name.to_s end |