I have a function that does work on an array, and the first 4 bytes are reserved for instructions. After the operations, the result lies from index 3 to the end. I am currently creating another array and copying from element 4 to the end.
Is there any way to modify the array (possibly using unsafe code) in order to change the starting location / resize? This would remove the copying and allocation and massively boost performance. There is Array.Resize, but it is not what i am looking for.