title: Deep copy duplicate() of Java's ByteBuffer
body: <p><code>java.nio.ByteBuffer#duplicate()</code> returns a new byte buffer that shares the old buffer's content. Changes to the old buffer's content will be visible in the new buffer, and vice versa. What if I want a deep copy of the byte buffer?</p>