fixed create from

This commit is contained in:
Monica Moniot
2023-12-05 11:23:11 -05:00
parent 16195bb587
commit 0bab972f21
+1 -1
View File
@@ -48,7 +48,7 @@ impl Buf {
}
}
pub fn create_from(buffer: &[u8]) -> Buf {
let mut buf = Self::new(buffer.len());
let mut buf = Self::new((buffer.len() + 7)/8*8);
let _ = buf.append(buffer);
buf
}