jhorstmann commented on issue #502:
URL: https://github.com/apache/arrow-rs/issues/502#issuecomment-870714948


   @ritchie46 there is a `bit_slice` method in `Buffer` for this usecase, if 
the offset is a multiple of 8 it returns a shallow slice, otherwise a new 
buffer with the shifted bits is constructed. And I agree this api is really 
easy to miss or error prone to use and we need to somehow come up with an api 
that doesn't require us to constantly think about bit offsets.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to