summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2025-10-15 13:07:19 -0400
committerPeter LaFosse <peter@vector35.com>2025-10-16 13:37:08 -0400
commitcd9eea2fdbd51c25a9f17435c561b6fe9377960f (patch)
tree98bb9755c8ce1d74f8d3c6934d0735a61377e7ae /binaryninjaapi.h
parent4780a8414c41099f49c5cb9a780bfffd084bdd47 (diff)
Add GetTypeCount API
Add note about type_names not being sorted anymore
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index a243f974..fd1363b2 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -20115,7 +20115,7 @@ namespace BinaryNinja {
*/
std::optional<std::unordered_set<std::string>> GetTypeIds() const;
- /*! Get all type names in a Type Container.
+ /*! Get all type names in a Type Container. Sort order is not guaranteed in 5.2 and later.
\return List of all type names
*/
@@ -20127,6 +20127,12 @@ namespace BinaryNinja {
*/
std::optional<std::unordered_map<std::string, QualifiedName>> GetTypeNamesAndIds() const;
+ /*! Get the number of types in a Type Container.
+
+ \return Number of types in the container
+ */
+ size_t GetTypeCount() const;
+
/*! Parse a single type and name from a string containing their definition,
with knowledge of the types in the Type Container.