R
realgeek
I have a byte array with binary data and I want to get its contants
into a string.
tagContent = System.Text.Encoding.ASCII.GetString(str);
screws binary data.
foreach (byte b in str)
{
tagContent += (char)b;
}
is damn slow.
What's the correct way to do this?
into a string.
tagContent = System.Text.Encoding.ASCII.GetString(str);
screws binary data.
foreach (byte b in str)
{
tagContent += (char)b;
}
is damn slow.
What's the correct way to do this?