zeroshade commented on code in PR #387:
URL: https://github.com/apache/arrow-nanoarrow/pull/387#discussion_r1492739275
##########
src/nanoarrow/nanoarrow.hpp:
##########
@@ -241,6 +241,13 @@ class Unique {
T data_;
};
+template <typename T>
+static inline void DeallocateWrappedBuffer(struct ArrowBufferAllocator*
allocator,
+ uint8_t* ptr, int64_t size) {
+ auto obj = reinterpret_cast<T*>(allocator->private_data);
+ delete obj;
+}
Review Comment:
definitely gonna save on creating lots of the same function :)
--
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]