r
buf[..2].copy_from_slice(&self.data[index..index + 2])
Size: a a a
r
buf[..2].copy_from_slice(&self.data[index..index + 2])
MK
r
use std::convert::TryInto;
buf = self.data[index..index + 2].try_into().unwrap();
MK
MK
MB
MK
MB
SS
MK
MK
SS
SS
MK
MK
MK
SS
MK
r
MK