From cd9eea2fdbd51c25a9f17435c561b6fe9377960f Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Wed, 15 Oct 2025 13:07:19 -0400 Subject: Add GetTypeCount API Add note about type_names not being sorted anymore --- binaryninjaapi.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'binaryninjaapi.h') 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> 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> 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. -- cgit v1.3.1