Le-o-n / cython-virtual-memory-toolkit

The Cython Virtual Memory Toolkit is designed to provide Cython header files (*.pxd) for various functionalities, enabling Cython to interact with the virtual memory of a target process. This toolkit includes features for reading, writing, allocating, and freeing virtual memory.
MIT License
2 stars 0 forks source link

Make all the submodules consistent in naming conventions and implementation #9

Closed Le-o-n closed 1 month ago

Le-o-n commented 1 month ago

Inconsistant naming convention for init functions

Should move to all be init as convention since this would be in line with python

CModule_init
CProcess_new

Sometimes the base init function will take in all the parameters such as CModule_init:

cdef inline CModule* CModule_init(CAppHandle* app_handle, char* name, void* base_address, size_t size) nogil: ...

Other times it takes in nothing and creates a blank structure such as CMemoryRegionNode_init:

Should make all init functions take in parameters since this would ensure that the constructed structure should be valid.

cdef inline CMemoryRegionNode* CMemoryRegionNode_init() nogil: ...