ntmemoryapi 2.2.1__tar.gz → 2.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ntmemoryapi-2.2.1 → ntmemoryapi-2.2.2}/PKG-INFO +1 -1
- {ntmemoryapi-2.2.1 → ntmemoryapi-2.2.2}/pyproject.toml +1 -1
- {ntmemoryapi-2.2.1 → ntmemoryapi-2.2.2}/src/ntmemoryapi/__init__.py +2 -2
- {ntmemoryapi-2.2.1 → ntmemoryapi-2.2.2}/README.md +0 -0
- {ntmemoryapi-2.2.1 → ntmemoryapi-2.2.2}/src/ntmemoryapi/embed.py +0 -0
- {ntmemoryapi-2.2.1 → ntmemoryapi-2.2.2}/src/ntmemoryapi/errors.py +0 -0
- {ntmemoryapi-2.2.1 → ntmemoryapi-2.2.2}/src/ntmemoryapi/misc.py +0 -0
|
@@ -554,13 +554,13 @@ class Process:
|
|
|
554
554
|
try:
|
|
555
555
|
|
|
556
556
|
# Read bytes into pre-allocated buffer
|
|
557
|
-
self.read_into_buffer(scan_adderss, scan_size, ctypes.addressof(read_memory_buffer))
|
|
557
|
+
self.read_into_buffer(scan_adderss, scan_size, ctypes.c_void_p(ctypes.addressof(read_memory_buffer)))
|
|
558
558
|
|
|
559
559
|
except Exception:
|
|
560
560
|
pass
|
|
561
561
|
|
|
562
562
|
# Pattern scan region using SIMD KMP algorithm
|
|
563
|
-
self.__kmp.scanAOB(ctypes.addressof(read_memory_buffer), scan_size, pattern.strip().encode(), ctypes.c_uint64(scan_adderss), ctypes.c_uint64(return_first if return_first is not None else 0), ctypes.byref(scan_result := PatternScanBuffer()))
|
|
563
|
+
self.__kmp.scanAOB(ctypes.c_void_p(ctypes.addressof(read_memory_buffer)), scan_size, pattern.strip().encode(), ctypes.c_uint64(scan_adderss), ctypes.c_uint64(return_first if return_first is not None else 0), ctypes.byref(scan_result := PatternScanBuffer()))
|
|
564
564
|
|
|
565
565
|
# Read result addresses
|
|
566
566
|
addresses = scan_result.read()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|