I have a program with a byte array, the size of which depends on the size, but is about 2300 bytes. I want to create a function that will create a new byte array by deleting all the bytes that I pass to it. For instance:
byte[] NewArray = RemoveBytes(OldArray,0xFF);
I need a function that will remove any bytes equal to 0xFF and return me a new byte array.
Any help would be greatly appreciated. By the way, I am using C #.
source share