D
Dennis Myrén
Hi.
I need a class similar to StringBuilder but that instead of generating a
System.String,
that generates a System.Byte array.
A System.IO.Stream would do it, but i also need an Insert function, to be
able to insert bytes at given positions in the array.
I could do this by myself, but i cant come up with any more efficient than
creating a new byte array
for each Insert invocation, copy the bytes to be inserted + the originial
array to that array and
finally assign the temporary array to the original array.
Feels like this could be a true performance killer when doing recursive
calls to Insert.
I really cant come up with anything more efficient, could any of you?
I am really appreciating help on this one.
Thank you. Dennis.
I need a class similar to StringBuilder but that instead of generating a
System.String,
that generates a System.Byte array.
A System.IO.Stream would do it, but i also need an Insert function, to be
able to insert bytes at given positions in the array.
I could do this by myself, but i cant come up with any more efficient than
creating a new byte array
for each Insert invocation, copy the bytes to be inserted + the originial
array to that array and
finally assign the temporary array to the original array.
Feels like this could be a true performance killer when doing recursive
calls to Insert.
I really cant come up with anything more efficient, could any of you?
I am really appreciating help on this one.
Thank you. Dennis.