mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-11 23:45:15 +00:00
a7f344cc7f
Currently the ByteBufferReference does not duplicate the buffer. This means that any changes to the buffer's limit or position will impact the reference. This can lead to unexpected behavior. This commit uses the ByteBuffer#slice method to ensure that the reference retains its own ByteBuffer.