diff options
| author | Jordan Wiens <github@psifertex.com> | 2025-10-21 16:25:53 -0400 |
|---|---|---|
| committer | Jordan Wiens <github@psifertex.com> | 2025-10-21 17:33:25 -0400 |
| commit | 89a0dff4fe21c42f86fa3d6bfc16dba2e2f51062 (patch) | |
| tree | e960c542c14c1c947051f955180538cff45e1702 | |
| parent | 0588217591c2f39af0e9176ba17786f3e590a700 (diff) | |
fix documentation indentation
| -rw-r--r-- | python/binaryview.py | 10 | ||||
| -rw-r--r-- | python/demangle.py | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index e38c334c..a3ef2b57 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -3928,11 +3928,11 @@ class BinaryView: Performs "finalization" on segments added after initial Finalization (performed after an Init() has completed). Finalizing a segment involves optimizing the relocation info stored in that segment, so if a segment is added - and relocations are defined for that segment by some automated process, this function should be called afterwards. + and relocations are defined for that segment by some automated process, this function should be called afterwards. An example of this can be seen in the KernelCache plugin, in `KernelCache::LoadImageWithInstallName`. - After we load an image, map new segments, and define relocations for all of them, we call this function - to let core know it is now safe to finalize the new segments + After we load an image, map new segments, and define relocations for all of them, we call this function + to let core know it is now safe to finalize the new segments :return: Whether finalization was successful """ @@ -7485,8 +7485,8 @@ class BinaryView: """ Create a new component with an optional name and parent. - The `parent` argument can be either a Component or the Guid of a component that the created component will be - added as a child of + The `parent` argument can be either a Component or the Guid of a component to which the created component + will be added as a child :param name: Optional name to create the component with :param parent: Optional parent to which the component will be added diff --git a/python/demangle.py b/python/demangle.py index 80916962..e4f81678 100644 --- a/python/demangle.py +++ b/python/demangle.py @@ -108,11 +108,11 @@ def demangle_llvm(mangled_name: str, options: Optional[Union[bool, binaryview.Bi :type options: Optional[Union[bool, BinaryView]] :return: returns demangled name or None on error :rtype: Optional[List[str]] - :Example: + :Example: - >>> demangle_llvm("?testf@Foobar@@SA?AW4foo@1@W421@@Z") + >>> demangle_llvm("?testf@Foobar@@SA?AW4foo@1@W421@@Z") ['public: static enum Foobar::foo __cdecl Foobar::testf(enum Foobar::foo)'] - >>> + >>> """ outName = ctypes.POINTER(ctypes.c_char_p)() outSize = ctypes.c_ulonglong() |
