Loading...
Searching...
No Matches
BinaryNinja::DerivedString Struct Reference

Contains a string derived from code or data. More...

Detailed Description

Contains a string derived from code or data.

The string does not need to be directly present in the binary in its raw form. Derived strings can have optional locations to data or code. When creating new derived strings, a custom type should be registered with CustomStringType::register.

Public Member Functions

bool operator== (const DerivedString &other) const
bool operator!= (const DerivedString &other) const
bool operator< (const DerivedString &other) const
BNDerivedString ToAPIObject (bool owned) const

Static Public Member Functions

static DerivedString FromAPIObject (BNDerivedString *str, bool owned)

Public Attributes

StringRef value
std::optional< DerivedStringLocationlocation
Ref< CustomStringTypecustomType

Member Function Documentation

◆ operator==()

bool BinaryNinja::DerivedString::operator== ( const DerivedString & other) const
inline

◆ operator!=()

bool BinaryNinja::DerivedString::operator!= ( const DerivedString & other) const
inline

◆ operator<()

bool BinaryNinja::DerivedString::operator< ( const DerivedString & other) const
inline

◆ ToAPIObject()

BNDerivedString DerivedString::ToAPIObject ( bool owned) const

◆ FromAPIObject()

DerivedString DerivedString::FromAPIObject ( BNDerivedString * str,
bool owned )
static

Member Data Documentation

◆ value

StringRef BinaryNinja::DerivedString::value

◆ location

std::optional<DerivedStringLocation> BinaryNinja::DerivedString::location

◆ customType

Ref<CustomStringType> BinaryNinja::DerivedString::customType