Create arraytransferwithpointer