pub unsafe fn as_buf_mut<B: ?Sized + Buf>(bytes: &mut [u8]) -> &mut B
Converts a mutable byte slice to a reference to a Buf.
Buf
See Buf::from_bytes().
Buf::from_bytes()