struct Cradare2::Model::BinaryInfo

Overview

Complete target information model combining core and bin sections.

Included Modules

Defined in:

cradare2/models/binary_info.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(core : CoreInfo | Nil = nil, bin : BinInfo | Nil = nil) #

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

[View source]

Instance Method Detail

def arch : String #

Convenience helper: architecture name


[View source]
def base_address : UInt64 #

Convenience helper: base load address


[View source]
def bin : BinInfo | Nil #

[View source]
def bits : Int32 #

Convenience helper: word bit size (e.g. 32 or 64)


[View source]
def bits64? : Bool #

Convenience helper: check if 64-bit


[View source]
def core : CoreInfo | Nil #

[View source]
def endian : String #

Convenience helper: endianness


[View source]
def format : String #

Convenience helper: binary file format (e.g., pe, elf, mach0)


[View source]
def os : String #

Convenience helper: target operating system


[View source]
def pic? : Bool #

Convenience helper: check if position independent executable/dll


[View source]