| 123456789101112 |
- use std::io::Result;
- pub use byteorder::{ReadBytesExt, WriteBytesExt};
- pub type Reader<'a> = &'a [u8];
- pub type Writer = Vec<u8>;
- pub trait Io : Sized {
- fn read(r: &mut Reader) -> Result<Self>;
- fn write(&self, w: &mut Writer) -> Result<()>;
- }
|