feat: add bytes
This commit is contained in:
9
__misc/bytes/src/main.rs
Normal file
9
__misc/bytes/src/main.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
use bytes::{BytesMut, BufMut};
|
||||
|
||||
fn main() {
|
||||
let mut buf = BytesMut::new();
|
||||
buf.put_u8(0x20);
|
||||
buf.put(&b"hello world"[..]);
|
||||
|
||||
println!("{:?}", buf);
|
||||
}
|
||||
Reference in New Issue
Block a user