struct Cradare2::Model::ModuleInfo

Overview

Represents a loaded binary module (executable, shared library, DLL) within the target process.

Included Modules

Defined in:

cradare2/models/module_info.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
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) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def address : UInt64 #

Uniform address alias


[View source]
def base_address : UInt64 #

The base virtual memory load address of this module.


[View source]
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")


[View source]
def contains?(address : UInt64) : Bool #

Returns true if the specified virtual memory address falls within this module's bounds.


[View source]
def end_address : UInt64 #

The upper boundary of the virtual memory occupied by this module.


[View source]
def name : String #

[View source]
def path : String | Nil #

[View source]
def raw_addr : UInt64 | Nil #

[View source]
def raw_addr_end : UInt64 | Nil #

[View source]
def raw_baddr : UInt64 | Nil #

[View source]
def raw_size : UInt64 | Nil #

[View source]
def regions : Array(MemoryMap) #

[View source]
def regions=(regions : Array(MemoryMap)) #

[View source]
def size : UInt64 #

Total size in bytes of the module's mapped image in memory.


[View source]
def to_s(io : IO) : Nil #

Formatted display string


[View source]