public static string FromNetworkBytes(Stream s) { byte[] stringArray = SerializedArray.FromNetworkBytes(s); return(System.Text.Encoding.UTF8.GetString(stringArray, 0, stringArray.Length)); }
public static byte[] ToNetworkBytes(string str) { byte[] encodedString = System.Text.Encoding.UTF8.GetBytes(str); return(SerializedArray.ToNetworkBytes(encodedString)); }