mirror of
https://github.com/vimpunk/mio.git
synced 2026-01-01 03:12:20 +08:00
Update README.md
This commit is contained in:
parent
f369d85deb
commit
dcdfacefb2
@ -1,11 +1,11 @@
|
||||
# mio
|
||||
An easy to use header-only cross-platform C++11 memory mapping library with an MIT license.
|
||||
|
||||
mio has been created with the goal to be easily includable (i.e. no dependencies) in any C++ project that needs memory mapped file IO without the need to pull in Boost.
|
||||
|
||||
Please feel free to open an issue, I'll try to address any concerns as best I can.
|
||||
|
||||
### Why?
|
||||
mio has been created with the goal to be easily includable (i.e. no dependencies) in any C++ project that needs memory mapped file IO without the need to pull in Boost.
|
||||
|
||||
The primary motivation for writing this library instead of using Boost.Iostreams, was the lack of support for establishing a memory mapping with an already open file handle/descriptor. This is possible with mio.
|
||||
|
||||
Albeit a minor nitpick, Boost.Iostreams implements memory mapped file IO with a `std::shared_ptr` to provide shared semantics, even if not needed, and the overhead of the heap allocation may be unnecessary and/or unwanted.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user