-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
process_vm_readv_k32
funct…
…ion.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,6 +128,21 @@ public struct IoVec | |
public nuint iov_len; | ||
} | ||
|
||
/// <summary> | ||
/// Helper around | ||
/// <see | ||
/// cref="process_vm_readv(int,Reloaded.Memory.Native.Unix.Posix.IoVec*,ulong,Reloaded.Memory.Native.Unix.Posix.IoVec*,ulong,ulong)" /> | ||
/// but with an API similar to <see cref="Kernel32.ReadProcessMemory" />. | ||
/// </summary> | ||
/// <param name="processId">Id of the process to read from.</param> | ||
/// <param name="localIov">Local memory address.</param> | ||
/// <param name="remoteIov">Remote memory address.</param> | ||
/// <param name="numBytes">Memory size.</param> | ||
/// <returns>True on success, else false.</returns> | ||
[Obsolete("Use process_vm_readv_k32_2 instead. This function has incorrect parameter order.")] | ||
[PublicAPI] | ||
public static bool process_vm_readv_k32(nint processId, nuint localIov, nuint remoteIov, nuint numBytes) => process_vm_readv_k32_2(processId, remoteIov, localIov, numBytes); | ||
|
||
/// <summary> | ||
/// Helper around | ||
/// <see | ||
|
@@ -139,7 +154,7 @@ public struct IoVec | |
/// <param name="localIov">Local memory address.</param> | ||
/// <param name="numBytes">Memory size.</param> | ||
/// <returns>True on success, else false.</returns> | ||
public static unsafe bool process_vm_readv_k32(nint processId, nuint remoteIov, nuint localIov, nuint numBytes) | ||
public static unsafe bool process_vm_readv_k32_2(nint processId, nuint remoteIov, nuint localIov, nuint numBytes) | ||
Check warning on line 157 in src/Reloaded.Memory/Native/Unix/Posix.cs GitHub Actions / build (windows-latest, net6.0, x64)
Check warning on line 157 in src/Reloaded.Memory/Native/Unix/Posix.cs GitHub Actions / build (windows-latest, net6.0, x64)
Check warning on line 157 in src/Reloaded.Memory/Native/Unix/Posix.cs GitHub Actions / build (ubuntu-latest, net6.0, x64)
Check warning on line 157 in src/Reloaded.Memory/Native/Unix/Posix.cs GitHub Actions / build (ubuntu-latest, net6.0, x64)
Check warning on line 157 in src/Reloaded.Memory/Native/Unix/Posix.cs GitHub Actions / build (macos-13, net6.0, x64)
Check warning on line 157 in src/Reloaded.Memory/Native/Unix/Posix.cs GitHub Actions / build (macos-13, net6.0, x64)
Check warning on line 157 in src/Reloaded.Memory/Native/Unix/Posix.cs GitHub Actions / build (windows-latest, net6.0, x86)
Check warning on line 157 in src/Reloaded.Memory/Native/Unix/Posix.cs GitHub Actions / build (windows-latest, net6.0, x86)
Check warning on line 157 in src/Reloaded.Memory/Native/Unix/Posix.cs GitHub Actions / upload
Check warning on line 157 in src/Reloaded.Memory/Native/Unix/Posix.cs GitHub Actions / upload
|
||
{ | ||
IoVec local = new() { iov_base = localIov, iov_len = numBytes }; | ||
IoVec remote = new() { iov_base = remoteIov, iov_len = numBytes }; | ||
|