libprocmem 0.1.2

A /proc/<pid>/mem reading and writing library
Documentation
  • Coverage
  • 100%
    21 out of 21 items documented0 out of 9 items with examples
  • Size
  • Source code size: 10.65 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 595.81 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 7s Average build duration of successful builds.
  • all releases: 7s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • gamozolabs/libprocmem
    11 2 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • gamozolabs

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)?;