rdbo / libmem

Advanced Game Hacking Library for C, Modern C++, Rust and Python (Windows/Linux/FreeBSD) (Process/Memory Hacking) (Hooking/Detouring) (Cross Platform) (x86/x64/ARM/ARM64) (DLL/SO Injection) (Internal/External) (Assembler/Disassembler)
GNU Affero General Public License v3.0
748 stars 90 forks source link

Define const types and parameters #160

Closed rdbo closed 7 months ago

rdbo commented 7 months ago

Some times are constant within the libmem context, meaning that libmem will never change them. This could be made explicit to the user, just like Rust's mut key word For example, in an API function, lm_bytearr_t would be for const lm_byte_t *, while lm_byte_t * would be a mutable array of bytes.

rdbo commented 7 months ago

Done: bc10ffbad4294dbe393bc073cfc98ad54138a93d - c6d3466649cf402c5b6c63bb7a0e4017a910f868