struct
Cradare2::Model::ModuleInfo
- Cradare2::Model::ModuleInfo
- Struct
- Value
- Object
Overview
Represents a loaded binary module (executable, shared library, DLL) within the target process.
Included Modules
- JSON::Serializable
Defined in:
cradare2/models/module_info.crConstructors
- .new(pull : JSON::PullParser)
- .new(name : String, base_address : UInt64 | Nil = nil, end_address : UInt64 | Nil = nil, size : UInt64 | Nil = nil, path : String | Nil = nil, regions : Array(MemoryMap) = [] of MemoryMap)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#address : UInt64
Uniform address alias
-
#base_address : UInt64
The base virtual memory load address of this module.
-
#basename : String
Returns the clean filename/basename of the module (e.g., "game.dll" from "C:\games\game.dll" or "/usr/lib/libgame.so")
-
#contains?(address : UInt64) : Bool
Returns true if the specified virtual memory address falls within this module's bounds.
-
#end_address : UInt64
The upper boundary of the virtual memory occupied by this module.
- #name : String
- #path : String | Nil
- #raw_addr : UInt64 | Nil
- #raw_addr_end : UInt64 | Nil
- #raw_baddr : UInt64 | Nil
- #raw_size : UInt64 | Nil
- #regions : Array(MemoryMap)
- #regions=(regions : Array(MemoryMap))
-
#size : UInt64
Total size in bytes of the module's mapped image in memory.
-
#to_s(io : IO) : Nil
Formatted display string
Constructor Detail
def self.new(name : String, base_address : UInt64 | Nil = nil, end_address : UInt64 | Nil = nil, size : UInt64 | Nil = nil, path : String | Nil = nil, regions : Array(MemoryMap) = [] of MemoryMap)
#
Instance Method Detail
def basename : String
#
Returns the clean filename/basename of the module (e.g., "game.dll" from "C:\games\game.dll" or "/usr/lib/libgame.so")
def contains?(address : UInt64) : Bool
#
Returns true if the specified virtual memory address falls within this module's bounds.