Teaching myself VB .NET, and the solution to this one is not obvious to me, but you guys can probably answer it pronto.
I've got a string of several thousand bytes in length, and I want to be able to replace characters anywhere within the string by absolute position. I'll always be replacing characters by exactly the same number of characters so methods to remove/insert etc are not appropriate.
i.e.
(lots of bytes..).........abcdefg.........(..lots of bytes)
becomes
(lots of bytes..).........abxyzfg.........(..lots of bytes)
I am going to want to do it thousands of times, so I want a solution that's very efficient, just altering the values of existing bytes in memory without any reallocation etc
What are my options?
I've got a string of several thousand bytes in length, and I want to be able to replace characters anywhere within the string by absolute position. I'll always be replacing characters by exactly the same number of characters so methods to remove/insert etc are not appropriate.
i.e.
(lots of bytes..).........abcdefg.........(..lots of bytes)
becomes
(lots of bytes..).........abxyzfg.........(..lots of bytes)
I am going to want to do it thousands of times, so I want a solution that's very efficient, just altering the values of existing bytes in memory without any reallocation etc
What are my options?