This might be a silly question, but have not found a simple answer yet...
I'm trying to insert a simple c# byte array into another byte array at a specific position. E.g. the existing bytes should be not be overridden, but just moved further back. Really just like you copy page some text block inside an existing text block.
- So far, I would create a new array with the length of both existing arrays.
- Copy the first array into the new one until the position where the insert starts.
- Add the inserted array
- Add the rest of the existing array.
But I would assume this is something common and should be easier? Or am I wrong?