pub fn vec_to_smallvec(data: Vec<u8>) -> MessageBufferExpand description
Convert Vec<u8> to SmallVec without allocation for small messages
This is useful when receiving data from WebSocket as Vec<u8>
and want to convert to our stack-based SmallVec