raw::buf_as_slice -> from_raw_buf