podio 0.1.0

Additional trait for Read and Write to read and write Plain Old Data
docs.rs failed to build podio-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: podio-0.2.0

podio

Build Status

Documentation

Implementation for reading and writing POD (plain old data) values in Rust. The name stands for POD I/O.

Usage

Include the following code:

[dependencies]
podio = "*"

Example

extern crate podio;

use podio::{ReadPodExt, BigEndian};

fn main() {
    let slice: &[u8] = &[0x10, 0x20, 0x30, 0x40];
    let mut reader = std::io::Cursor::new(slice);

    let value = reader.read_u32::<BigEndian>().unwrap();

    assert_eq!(value, 0x10203040);
}