Registry / utility / positioned-io

positioned-io

JSON →
library0.3.5rscratesunverified

Provides reading and writing at a specific offset in a file or stream, similar to pread/pwrite.

# Cargo.toml [dependencies] positioned-io = "0.3.5"
INSTALL
IMPORT
SIG · POSITIONED-IO
P
positioned-io
utilityrustv0.3.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ReadAt
✓ use positioned_io::{ReadAt, WriteAt};

Writes and reads at specific offsets in a file.

use positioned_io::{ReadAt, WriteAt}; use std::fs::File; fn main() -> std::io::Result<()> { let mut file = File::create("test.bin")?; file.write_at(0, b"hello")?; file.write_at(5, b"world")?; let mut buf = [0u8; 10]; file.read_at(0, &mut buf)?; println!("Read: {:?}", std::str::from_utf8(&buf)); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
positioned-io — cargo add positioned-io · libregistry