rw-types 0.2.0

Library for reading and writing types.
Documentation
  • Coverage
  • 78.57%
    22 out of 28 items documented0 out of 0 items with examples
  • Size
  • Source code size: 45.52 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 548.1 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s 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_ty::<i64>(&26, Endian::Little)?;
file.write_ty::<f32>(&1.8, Endian::Little)?;

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