Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
KritantaDev authored and KritantaDev committed Mar 30, 2022
1 parent 359084a commit da4716c
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
# -- Project information -----------------------------------------------------

project = 'ktool'
copyright = '2021, kat'
copyright = '2022, kat'
author = 'cynder'

# The full version, including alpha/beta/rc tags
release = '1.0.0'
release = '1.2.0'

# -- General configuration ---------------------------------------------------

Expand Down
48 changes: 46 additions & 2 deletions docs/source/ktool.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ You should obtain an instance of this class using the public :python:`ktool.load

ExternalDylib object that (admittedly, somewhat confusingly) actually represents this Image itself.

.. py:method:: serialize() -> dict
Return image metadata as a dictionary of json-serializable keys and objects

.. py:method:: vm_check(address: int) -> bool
Check if an address resolves within the VM translation table
Expand Down Expand Up @@ -244,6 +248,10 @@ ObjCImage
Map of Load addresses to protocols

.. py:method:: serialize() -> dict
Return image metadata as a dictionary of json-serializable keys and objects

.. py:method:: vm_check(address: int) -> bool
Check if an address resolves within the VM translation table
Expand Down Expand Up @@ -404,6 +412,10 @@ Segment
Size of the segment

.. py:method:: serialize() -> dict
Return image metadata as a dictionary of json-serializable keys and objects


Section
=================================
Expand All @@ -428,6 +440,10 @@ Section
Size of the Section

.. py:method:: serialize() -> dict
Return image metadata as a dictionary of json-serializable keys and objects


Header
=================================
Expand Down Expand Up @@ -528,6 +544,10 @@ ImageHeader
List of load command structs

.. py:method:: serialize() -> dict
Return image metadata as a dictionary of json-serializable keys and objects


ExternalDylib
=================================
Expand Down Expand Up @@ -689,6 +709,10 @@ Class
.. py:attribute:: ivars: List[Ivar]
.. py:method:: serialize() -> dict
Return image metadata as a dictionary of json-serializable keys and objects


Method
=================================
Expand Down Expand Up @@ -726,6 +750,10 @@ Method
Fully built method signature

.. py:method:: serialize() -> dict
Return image metadata as a dictionary of json-serializable keys and objects

Property
=================================

Expand All @@ -749,7 +777,11 @@ Property

.. py:attribute:: ivarname
Name of the ivar backing this property
Name of the ivar backing this property

.. py:method:: serialize() -> dict
Return image metadata as a dictionary of json-serializable keys and objects

Ivar
=================================
Expand All @@ -770,6 +802,10 @@ Ivar
Renderable type

.. py:method:: serialize() -> dict
Return image metadata as a dictionary of json-serializable keys and objects

Category
=================================

Expand Down Expand Up @@ -801,6 +837,10 @@ Category
.. py:attribute:: protocols: List[Protocol]
.. py:method:: serialize() -> dict
Return image metadata as a dictionary of json-serializable keys and objects


Protocol
=================================
Expand Down Expand Up @@ -833,7 +873,11 @@ Protocol
Methods that may (but are not required to) be implemented by classes conforming to this protocol

.. py:attribute:: properties: List[Property]
.. py:attribute:: properties: List[Property]
.. py:method:: serialize() -> dict
Return image metadata as a dictionary of json-serializable keys and objects


Type Processing / Encoding
Expand Down

0 comments on commit da4716c

Please sign in to comment.