rshmem 0.1.2

Win32 shared memory with safe wrapper for allocating buffers
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 0 items with examples
  • Size
  • Source code size: 36.86 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 626.65 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tinternet

rshmem

crates.io mio

This crate provides a wrapper around win32 shared memory APIs. It provides an easy way to allocate, link allocations and deallocate buffers.

Usage

    let memory = Memory::new("test2", 100, 0x6BC00000).unwrap();

    // allocate first buffer
    let buffer1 = memory.allocate(4).unwrap();

    // allocate second buffer
    let buffer2 = memory.allocate(4).unwrap();

    // allocate a buffer and link it to the second
    let child = memory.allocate_more(4, buffer2).unwrap();

    // deallocate the first buffer
    memory.deallocate(buffer1);

    // deallocate the second buffer, it will deallocate all child buffers
    memory.deallocate(buffer2);

License

Contribution

Feel free to create pull requests