Update buffer slicing
Merge pull request #18 from polyfractal/fix/from_buf_raw

Update buffer slicing