How to overwrite a specific chunk in a byte array
问题 Given a bytearray and a new bytearray of which i need to overwrite its content on the original bytearray but starting from a specific position/offset (A) as shown in the image below(we can say B is the length of the new Array). Also handling the new length if the overwriting exceeds the actual length of the original array. (this is needed for .WAV file overwriting in different positions). here is what i have tried so far but no luck. public byte[] ByteArrayAppender(byte[] firstData, byte[]