Re: ArrowBuf.nioBuffer() reference counting

2022-04-06 Thread Jacques Nadeau
I believe the former. You need to be wary and pay attention. On Wed, Apr 6, 2022, 2:56 PM Andrew Melo wrote: > Hello, > > When using (on Java) ArrowBuf.nioBuffer(), does care need to be taken > so that the underlying ArrowBuf doesn't go out of scope? Or does it > increment the reference count

ArrowBuf.nioBuffer() reference counting

2022-04-06 Thread Andrew Melo
Hello, When using (on Java) ArrowBuf.nioBuffer(), does care need to be taken so that the underlying ArrowBuf doesn't go out of scope? Or does it increment the reference count somewhere behind the scenes? Thanks Andrew