Hey guys I’m working on a project in C# were I must replace any byte that will terminate a string with some sort of place holder.. Is there some way to do this in C# without terminating the string or interfering with the data at hand?
The reason i need to do this is because I need to put the bytes in the same spot after.
Remove the null byte entirely, and mark its position(‘s). Then, when you are rebuilding the byte array, reinsert it. It may be easier to use lists (insert at, and remove at), and just convert to afterwards to the byte array format.