deepCopy

Deep copy of ByteBuffer from IBufferPool.

Don't forget to put the returned ByteBuffer to the buffer pool when you are done with it.

Return

ByteBuffer deep copy

Parameters

pool

Deprecated

Use ByteBufferPool instead

Deep copy of ByteBuffer. The position of the original ByteBuffer will be 0 after the clone.