Guest User

Untitled

a guest
May 23rd, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. extern crate bytes;
  2. use self::bytes::*;
  3.  
  4. fn main() {
  5. println!("Hello, world!");
  6. let mut buf = BytesMut::with_capacity(1024);
  7. buf.put(&b"hello world"[..]);
  8. buf.put_u16(1234);
  9. println!("buf: {}", buf.len());
  10. }
Add Comment
Please, Sign In to add comment