bkietz opened a new issue, #36417:
URL: https://github.com/apache/arrow/issues/36417

   ### Describe the enhancement requested
   
   Buffer's data is usually cast to a non-byte type before use, which requires 
a lot of boilerplate with `reinterpret_cast`. If the buffer happens to live in 
an `ArrayData` we can use `GetValues` but bare buffers don't have access to 
this. Let's add an accessor which does the same thing for bare buffers: `const 
T* Buffer::data_as<T>() const` and `T* Buffer::mutable_data_as<T>()` will 
greatly simplify usage of buffers.
   
   ### Component(s)
   
   C++


-- 
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