Emulate BufferUtils.copy(Buffer, Buffer, numElements)
Merge pull request #2506 from xoppa/bufferutils

Emulate BufferUtils.copy(Buffer, Buffer, numElements)