/* ------------------------------------------- Copyright Mahrouss Logic ------------------------------------------- */ #pragma once #include #define kAllocationTypes 2 enum RtAllocationKind { kStandardAllocation = 0xC, kArrayAllocation = 0xD, }; /// @brief Allocates a new pointer from process pool. /// @param sz the size /// @param flags the allocation flags. /// @return CA_EXTERN_C PtrVoidType RtAllocateProcessPtr(QWordType sz, DWordType flags); /// @brief Check if the pointer exists. /// @param ptr the pointer to free. /// @return CA_EXTERN_C BooleanType RtProcessPtrExists(PtrVoidType ptr); /// @brief Gets the size of the process' pointer. /// @param ptr the pointer to free. /// @return CA_EXTERN_C QWordType RtProcessPtrSize(PtrVoidType ptr); /// @brief Frees the process pointer. /// @param ptr the pointer to free. /// @return CA_EXTERN_C VoidType RtFreeProcessPtr(PtrVoidType ptr);