Loading...
Searching...
No Matches
BinaryNinja::CoreLineFormatter Class Reference

Public Member Functions

 CoreLineFormatter (BNLineFormatter *formatter)
std::vector< DisassemblyTextLineFormatLines (const std::vector< DisassemblyTextLine > &lines, const LineFormatterSettings &settings) override
 Reformats the given list of lines.
Public Member Functions inherited from BinaryNinja::LineFormatter
 LineFormatter (const std::string &name)
 LineFormatter (BNLineFormatter *formatter)
Public Member Functions inherited from BinaryNinja::StaticCoreRefCountObject< BNLineFormatter >
 StaticCoreRefCountObject ()
virtual ~StaticCoreRefCountObject ()
BNLineFormatterGetObject () const
void AddRef ()
void Release ()
void AddRefForRegistration ()
void AddRefForCallback ()
void ReleaseForCallback ()

Additional Inherited Members

Static Public Member Functions inherited from BinaryNinja::LineFormatter
static void Register (LineFormatter *formatter)
 Registers the line formatter.
static std::vector< Ref< LineFormatter > > GetList ()
static Ref< LineFormatterGetByName (const std::string &name)
static Ref< LineFormatterGetDefault ()
Public Attributes inherited from BinaryNinja::StaticCoreRefCountObject< BNLineFormatter >
std::atomic< int > m_refs
BNLineFormatterm_object

Constructor & Destructor Documentation

◆ CoreLineFormatter()

CoreLineFormatter::CoreLineFormatter ( BNLineFormatter * formatter)

Member Function Documentation

◆ FormatLines()

vector< DisassemblyTextLine > CoreLineFormatter::FormatLines ( const std::vector< DisassemblyTextLine > & lines,
const LineFormatterSettings & settings )
overridevirtual

Reformats the given list of lines.

Returns a new list of lines containing the reformatted code.

Parameters
linesThe lines to reformat.
settingsThe settings for reformatting.
Returns
A new list of reformatted lines.

Implements BinaryNinja::LineFormatter.