io_self_derive 0.2.0

Derive macros for the io_self crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#![allow(dead_code)]
use io_self_derive::{ReadSelf, WriteSelf};

#[derive(ReadSelf, WriteSelf)]
#[io_self(endian = "big")]
pub struct Foo {
    a: u32,
    #[io_self(length_prefix = "u16")]
    b: Vec<u8>,
    c: i64,
}

fn main() {}