rw-types 0.1.0

Library for reading and writing types.
Documentation
  • Coverage
  • 72.73%
    16 out of 22 items documented0 out of 0 items with examples
  • Size
  • Source code size: 43.92 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 522.57 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • SDFTDusername

rw-types

Library for reading and writing types.

Example

use rw_types::prelude::*;

let mut file = File::create("file.bin")?;
file.write_type::<i64>(&26, Endian::Little)?;
file.write_type::<f32>(&1.8, Endian::Little)?;

let mut file = File::open("file.bin")?;
assert_eq!(file.read_type::<i64>(Endian::Little)?, 26);
assert_eq!(file.read_type::<f32>(Endian::Little)?, 1.8);