Code example for ByteBuffer

Methods: limitpositionduplicateslice, ByteBuffer.limit