Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure buffer data is 1-dimensional bytes
cast doesn't exist under Python 2, but that's okay - we'll just throw an error (which we need to do anyway given the data isn't 1-D bytes). Under Python 3, it'll attempt to cast but may fail if the data isn't C-contiguous (again, that's okay)
- Loading branch information