diff options
| author | Josh Ferrell <josh@vector35.com> | 2026-04-27 11:42:56 -0400 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2026-04-27 11:42:56 -0400 |
| commit | e3bff3341343de7b89bf274c244978cfdc9459be (patch) | |
| tree | dfefb7675f35d16b30507b3c18f1a46d063d3804 /python | |
| parent | 0917294816301536180495048727204440882880 (diff) | |
[Python API] Add missing BinaryView.get_default_load_settings_for_data
Diffstat (limited to 'python')
| -rw-r--r-- | python/binaryview.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index 72768060..77afd54a 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -1551,6 +1551,15 @@ class BinaryViewType(metaclass=_BinaryViewTypeMetaclass): return None return settings.Settings(handle=load_settings) + def get_default_load_settings_for_data(self, data: 'BinaryView') -> Optional['settings.Settings']: + view_handle = None + if data is not None: + view_handle = data.handle + load_settings = core.BNGetBinaryViewDefaultLoadSettingsForData(self.handle, view_handle) + if load_settings is None: + return None + return settings.Settings(handle=load_settings) + def register_arch(self, ident: int, endian: Endianness, arch: 'architecture.Architecture') -> None: core.BNRegisterArchitectureForViewType(self.handle, ident, endian, arch.handle) |
