From 75d05ea710f80a0ca2fdc53b638952a7a97e7ad8 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Mon, 24 Aug 2020 21:46:36 +0800 Subject: display as in linear view --- binaryninjaapi.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 0348c52b..05924070 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -1198,6 +1198,13 @@ __attribute__ ((format (printf, 1, 2))) class Tag; + struct DisassemblyTextLineTypeInfo + { + bool hasTypeInfo; + BinaryNinja::Ref parentType; + size_t fieldIndex; + }; + struct DisassemblyTextLine { uint64_t addr; @@ -1205,6 +1212,7 @@ __attribute__ ((format (printf, 1, 2))) std::vector tokens; BNHighlightColor highlight; std::vector> tags; + DisassemblyTextLineTypeInfo typeInfo; DisassemblyTextLine(); }; @@ -2500,6 +2508,8 @@ __attribute__ ((format (printf, 1, 2))) QualifiedName GetStructureName() const; Ref GetRegisteredName() const; + BNIntegerDisplayType GetIntegerTypeDisplayType() const; + uint64_t GetElementCount() const; uint64_t GetOffset() const; @@ -2597,6 +2607,7 @@ __attribute__ ((format (printf, 1, 2))) Confidence IsSigned() const; Confidence IsConst() const; Confidence IsVolatile() const; + void SetIntegerTypeDisplayType(BNIntegerDisplayType displayType); Confidence> GetChildType() const; Confidence> GetCallingConvention() const; @@ -5289,7 +5300,8 @@ __attribute__ ((format (printf, 1, 2))) bool hasAutoAnnotations, const std::string& leadingSpaces=" ", const std::string& indentSpaces=""); - static std::string GetDisplayStringForInteger(Ref binaryView, BNIntegerDisplayType type, uint64_t value, size_t inputWidth); + static std::string GetDisplayStringForInteger(Ref binaryView, BNIntegerDisplayType type, + uint64_t value, size_t inputWidth, bool isSigned = true); }; struct LinearViewObjectIdentifier -- cgit v1.3.1