From 3394019790216360933090478665025216727891 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Thu, 11 Apr 2024 15:54:34 -0400 Subject: Rename lineWidth -> paddingCols in GetTypeLines() This is a more accurate name for what the parameter actually does. Documentation was improved as well. --- python/types.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/types.py') diff --git a/python/types.py b/python/types.py index 57c0824c..e08bc796 100644 --- a/python/types.py +++ b/python/types.py @@ -2005,7 +2005,7 @@ class Type: return result def get_lines( - self, bv: Union['binaryview.BinaryView', 'typecontainer.TypeContainer'], name: str, line_width: int = 80, collapsed: bool = False, + self, bv: Union['binaryview.BinaryView', 'typecontainer.TypeContainer'], name: str, padding_cols: int = 80, collapsed: bool = False, escaping: TokenEscapingType = TokenEscapingType.NoTokenEscapingType ) -> List['TypeDefinitionLine']: """ @@ -2015,7 +2015,7 @@ class Type: :param BinaryView bv: BinaryView object owning this Type :param str name: Displayed name of the Type - :param int line_width: Maximum width of lines (in characters) + :param int padding_cols: Maximum number of bytes represented by each padding line :param bool collapsed: If the type should be collapsed, and not show fields/members :param TokenEscapingType escaping: How to escape non-parsable strings in types :return: Returns a list of :py:class:`TypeDefinitionLine` structures @@ -2028,7 +2028,7 @@ class Type: container = bv else: assert False, "Unexpected type container type" - core_lines = core.BNGetTypeLines(self._handle, container.handle, name, line_width, collapsed, escaping, count) + core_lines = core.BNGetTypeLines(self._handle, container.handle, name, padding_cols, collapsed, escaping, count) assert core_lines is not None, "core.BNGetTypeLines returned None" lines = [] for i in range(count.value): -- cgit v1.3.1