Say I have array X(0 to 999999), filled with data.
I want to define a new array Y(0 to 1023), with 1024 consecutive elements from array X(), starting from any index of X.
I do not want to copy with ArrayCopy. I want array Y to point to the data in X.
My final objective is to split X into pieces that I can send with AudioStreamer.Write(Y), but I don't want to waste time duplicating X.
Is there a way to do this? Thanks.
PS: Splitting array X upon read is not an option, because I need array X() as an entire block to perform a process.
I want to define a new array Y(0 to 1023), with 1024 consecutive elements from array X(), starting from any index of X.
I do not want to copy with ArrayCopy. I want array Y to point to the data in X.
My final objective is to split X into pieces that I can send with AudioStreamer.Write(Y), but I don't want to waste time duplicating X.
Is there a way to do this? Thanks.
PS: Splitting array X upon read is not an option, because I need array X() as an entire block to perform a process.
Last edited: