lidavidm commented on issue #13431:
URL: https://github.com/apache/arrow/issues/13431#issuecomment-1165553813

   setBytes doesn't update writerIndex, but writeBytes does, and the length of 
the nioBuffer is defined as `writerIndex - readerIndex`. So if you use 
setBytes, the length of the buffer is still 0. The docstring could be 
clarified, but this sounds like intentional behavior to me.


-- 
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]

Reply via email to