Crates.io | libprocmem |
lib.rs | libprocmem |
version | 0.1.2 |
source | src |
created_at | 2022-05-28 01:09:11.80765 |
updated_at | 2022-05-28 01:18:38.321933 |
description | A /proc/ |
homepage | |
repository | https://github.com/gamozolabs/libprocmem |
max_upload_size | |
id | 595453 |
size | 10,651 |
A very simple library that wraps around /proc/pid/mem
and /proc/pid/maps
to read memory out of a running process on Linux.
Basic usage looks like:
// Request access to PID `1234`'s memory
let mem = Memory::pid(1234)?;
/// Read some data!
let data = mem.read::<u32>(0x13370000)?;
/// Read a slice of 69 floats
let data = mem.read_slice::<f32>(0x13370000, 69)?;