Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extern crate bytes;
- use self::bytes::*;
- fn main() {
- println!("Hello, world!");
- let mut buf = BytesMut::with_capacity(1024);
- buf.put(&b"hello world"[..]);
- buf.put_u16(1234);
- println!("buf: {}", buf.len());
- }
Add Comment
Please, Sign In to add comment