Trait lief::macho::commands::Command

pub trait Command {
    // Provided methods
    fn size(&self) -> u32 { ... }
    fn offset(&self) -> u64 { ... }
    fn command_type(&self) -> LoadCommandTypes { ... }
    fn data(&self) -> &[u8]  { ... }
}
Expand description

Trait shared by all the load command: Commands

Provided Methods§

fn size(&self) -> u32

Size of the command (should be greather than sizeof(load_command))

fn offset(&self) -> u64

Offset of the command within the Load Command Table

fn command_type(&self) -> LoadCommandTypes

The command’s type

fn data(&self) -> &[u8]

The raw command as a slice of bytes

Trait Implementations§

§

impl Debug for &dyn Command

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§

§

impl Command for Commands<'_>

§

impl Command for BuildVersion<'_>

§

impl Command for CodeSignature<'_>

§

impl Command for CodeSignatureDir<'_>

§

impl Command for DataInCode<'_>

§

impl Command for DyldChainedFixups<'_>

§

impl Command for DyldEnvironment<'_>

§

impl Command for DyldExportsTrie<'_>

§

impl Command for DyldInfo<'_>

§

impl Command for Dylib<'_>

§

impl Command for Dylinker<'_>

§

impl Command for DynamicSymbolCommand<'_>

§

impl Command for EncryptionInfo<'_>

§

impl Command for FunctionStarts<'_>

§

impl Command for Generic<'_>

§

impl Command for LinkerOptHint<'_>

§

impl Command for Main<'_>

§

impl Command for RPath<'_>

§

impl Command for Routine<'_>

§

impl Command for Segment<'_>

§

impl Command for SegmentSplitInfo<'_>

§

impl Command for SourceVersion<'_>

§

impl Command for SubClient<'_>

§

impl Command for SubFramework<'_>

§

impl Command for SymbolCommand<'_>

§

impl Command for ThreadCommand<'_>

§

impl Command for TwoLevelHints<'_>

§

impl Command for UUID<'_>

§

impl Command for Unknown<'_>

§

impl Command for VersionMin<'_>