Copy data between shared memory and user data array