-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow bytearray as input #35
Comments
Possibly related: Seems to suggest that arbitrary binary data would be converted to Unicode. |
Not sure how safe it is, but this lets me pass in bytearray:
|
@stephan-hof What are your thoughts on this one? |
Hi @Downchuck I think its a good idea to support byte-array (and possibly memoryview, buffer, ...). |
I tried to support memoryview in another cython project -- I did not succeed. bytearray was easy, as it was just a raw char*. It seems like memoryview and buffer both need their own work, futher, I was trying to pass a memoryviewslice from another cython build (via runcython). Anyway, that single-line item seems to handle python bytes() and bytearray(). |
Column Family Support
Currently the bytes_to_slice does not support bytearray; bytearray is just a standard/compatible pointer.
The text was updated successfully, but these errors were encountered: