dlg99 commented on PR #4196: URL: https://github.com/apache/bookkeeper/pull/4196#issuecomment-1924484989
> No. There are multiple layers of wrappers and it's not safe to unwrap the wrappers. I hope the previous comment [#4196 (comment)](https://github.com/apache/bookkeeper/pull/4196#issuecomment-1920714720) clarifies this. as I understood, if you take offset (readerIndex) and length from the "wrapped" buffer, unwrapped.decompose(offset, len) will use these to provide proper buffers (slices if needed). I just briefly looked at the code of decompose, please double-check. -- 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]
