From e42f305aa164f98d0da027796ba07a512d449ec7 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Thu, 2 Jul 2020 22:46:07 -0400 Subject: small update to working with type guide describing function types --- docs/guide/type.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/guide') diff --git a/docs/guide/type.md b/docs/guide/type.md index ede231d7..b4df1ef4 100644 --- a/docs/guide/type.md +++ b/docs/guide/type.md @@ -307,6 +307,8 @@ If we want to name the variable there, see the section below on working with [sy NOTE: There also exists the [`define_data_var`](https://api.binary.ninja/binaryninja.binaryview-module.html#binaryninja.binaryview.BinaryView.define_data_var) API, however that will create an AUTO data variable. Auto-APIs are intended for code which is expected to be run every-time a binary is opened. Thus, they're not saved to the analysis database since they will generally be generated on load. Keep that in mind when you see multiple APIs that have both `_auto_` and `_user_` variants. +Alternatively, if you wanted to add or change the type of a function, function objects have a `[.function_type](https://api.binary.ninja/binaryninja.function-module.html#binaryninja.function.Function.function_type)` property that can take either a type object or a string. + ### Deleting To remove a type from the view: -- cgit v1.3.1