Currently I am using this code for converting string to byte array:
var tempByte = System.Text.Encoding.UTF8.GetBytes(tempText);
I call this line very often in my application, and I really want to use a faster one. How can I convert a string to a byte array faster than the default GetBytes method? Maybe with an unsafe code?
GetBytes
does use unsafe code already. – Smog