read array with offset/length added