drin commented on issue #13978: URL: https://github.com/apache/arrow/issues/13978#issuecomment-1227846264
I think to answer some amount of some other questions, you can maybe look into the [MemoryPool](https://arrow.apache.org/docs/cpp/api/memory.html#_CPPv4N5arrow10MemoryPoolE) functions. My understanding is that any Arrow data allocated is done in a MemoryPool. Also, in general, where there's a reference or a raw pointer, the memory should be kept alive externally to the function. So, in `Writable::Write`, it can keep the data alive since it's a shared pointer. However, `StreamDecoder::Consume` will not be able to, unless you're managing that memory manually. -- 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]
