I think you could achieve this with inheritance similar to StlStringBufffer
(this is how Buffer::FromString works) or by using a custom shared_ptr
deleter (this is how Buffer::FromVector works). I would look at the
implementation of those two methods and work from there.
On Tue, Apr 1, 2025 at 10
Hi,
I'm using the Arrow C++ API with an external RPC library to
exchange Arrow data as record batches. I can not figure out how
to use the arrow::Buffer interface with my RPC library properly.
Simplified version of the flow -- on the receiver of Arrow data,
my RPC library hands me a uint8_t* poin
I didn't realize I could subclass buffers -- this is perfect, thank you!!
Ankush
On Tue, Apr 1, 2025 at 4:08 PM Weston Pace wrote:
>
> I think you could achieve this with inheritance similar to StlStringBufffer
> (this is how Buffer::FromString works) or by using a custom shared_ptr
> deleter