Byte place holder? [closed]
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this questionHey guys I'm working on a project in C# were I must replace any byte that开发者_Python百科 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.
精彩评论