BufferUtils: add copy without resize and move jni