/// <summary> /// URL escape /// </summary> /// <param name="data">The data to escape</param> /// <returns>Returns the escaped data</returns> public static byte[] EscapeToBytes(string data) { return(s_defaultEscapeUtility.EscapeToBytes(data)); }
/// <summary> /// URL escape for bytes /// </summary> /// <param name="data">The data to escape</param> /// <param name="encoding">The encoding to use to convert the string into a byte array</param> /// <returns>Returns the escaped data</returns> public static byte[] EscapeToBytes(string data, Encoding encoding) { return(UrlEscapeUtility.EscapeToBytes(data, encoding)); }
/// <summary> /// URL escape for bytes /// </summary> /// <param name="data">The data to escape</param> /// <returns>Returns the escaped data</returns> public static byte[] EscapeToBytes(byte[] data) { return(UrlEscapeUtility.EscapeToBytes(data)); }
/// <summary> /// URL escape for bytes /// </summary> /// <param name="data">The data to escape</param> /// <param name="flags">The flags to modify the escaping behavior</param> /// <returns>Returns the escaped data</returns> public static byte[] EscapeToBytes(byte[] data, UrlEscapeFlags flags) { return(UrlEscapeUtility.EscapeToBytes(data, flags)); }