예제 #1
0
 /// <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));
 }
예제 #2
0
 /// <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));
 }
예제 #3
0
 /// <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));
 }
예제 #4
0
 /// <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));
 }