io-operations
- Preliminary integration with the IO-Operations library```rust extern crate varint; use varint::{ VarintRead, VarintWrite }; //Using IO-Operations? Replace with VarintReader and VarintWriter, the functions are the same
use std::io::Cursor; //Currently supports Cursor
let mut vector = Cursor::new(vec![0u8; 0]);
assert!(vector.writesignedvarint32(2346784).isok()); //You can check this however you like. Try! could work. I'll check it out in Netherrack and update this by 1.0
//Do whatever you need to do. vector.set_position(0); //If you're using a TcpStream, you'd probably switch sides and into a different codebase. This is just a quick example before I fall asleep :)
asserteq!(2346784, vector.readsignedvarint32().unwrap()); //You could also use try! here. Again, I'll test it in a real world project and update later
```