Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ToByteArray()

static byte[] Terraria.Utils.ToByteArray ( this string str)
inlinestatic

Definition at line 793 of file Utils.cs.

794 {
795 byte[] array = new byte[str.Length * 2];
796 Buffer.BlockCopy(str.ToCharArray(), 0, array, 0, array.Length);
797 return array;
798 }

References System.array, and System.str.