开发者

Byte place holder? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.

Want to improve this question? Add details and clarify the problem by editing this post.

Closed 9 years ago.

Improve this question

Hey 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜