zeroshade commented on code in PR #38314:
URL: https://github.com/apache/arrow/pull/38314#discussion_r1364026932
##########
go/arrow/memory/buffer.go:
##########
@@ -33,6 +33,10 @@ type Buffer struct {
parent *Buffer
}
+func NewBufferWithAllocator(data []byte, mem Allocator) *Buffer {
Review Comment:
There isn't really a way to expose it *only* in `importAllocator.go` because
we don't expose any ability to set/change the allocator of a buffer (nor do we
want to) essentially the difference between *this* method and
`NewResizableBuffer` is that `mutable` will be marked as false.
--
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]