io_partition

Crates.ioio_partition
lib.rsio_partition
version1.1.1
sourcesrc
created_at2020-03-09 10:44:22.661902
updated_at2021-02-11 16:08:53.743566
descriptionA library allowing to use just a part of a Read + Seek object
homepage
repositoryhttps://github.com/marius851000/io_partition
max_upload_size
id216838
size20,334
(marius851000)

documentation

README

io_partition

This rust crate allow to take a part of an object that implement Read + Seek (typically a file), by specifing it's offset and lenght. It can also build similar item with an Arc<Mutex>, ensuring coherency of the pointer in the file, allowing to access the same file concurrently (althougth it isn't optimized for speed, as it have to unlock the Mutex and seek to the good position).

This mutex can however be locked for single-threader access, allowing near-native performance.

Commit count: 5

cargo fmt