MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / set_default_session_data

Method set_default_session_data

python/binaryview.py:2949–2961  ·  view source on GitHub ↗

``set_default_session_data`` saves a variable to the BinaryView. Session data is ephemeral not saved to a database. Consider using :py:func:`store_metadata` if permanence is needed. :param str name: name of the variable to be saved :param str value: value of the variable to be saved :Exam

(name: str, value: str)

Source from the content-addressed store, hash-verified

2947
2948 @staticmethod
2949 def set_default_session_data(name: str, value: str) -> None:
2950 """
2951 ``set_default_session_data`` saves a variable to the BinaryView. Session data is ephemeral not saved to a database. Consider using :py:func:`store_metadata` if permanence is needed.
2952
2953 :param str name: name of the variable to be saved
2954 :param str value: value of the variable to be saved
2955
2956 :Example:
2957 >>> BinaryView.set_default_session_data("variable_name", "value")
2958 >>> bv.session_data.variable_name
2959 'value'
2960 """
2961 _BinaryViewAssociatedDataStore.set_default(name, value)
2962
2963 @property
2964 def preload_limit(self) -> int:

Callers

nothing calls this directly

Calls 1

set_defaultMethod · 0.80

Tested by

no test coverage detected