libprocmem

Crates.iolibprocmem
lib.rslibprocmem
version0.1.2
sourcesrc
created_at2022-05-28 01:09:11.80765
updated_at2022-05-28 01:18:38.321933
descriptionA /proc//mem reading and writing library
homepage
repositoryhttps://github.com/gamozolabs/libprocmem
max_upload_size
id595453
size10,651
(gamozolabs)

documentation

https://docs.rs/libprocmem

README

Summary

A very simple library that wraps around /proc/pid/mem and /proc/pid/maps to read memory out of a running process on Linux.

Usage

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)?;
Commit count: 7

cargo fmt