예제 #1
0
 /// <summary>
 /// Compute length of the data after escaping its values
 /// </summary>
 /// <param name="data">The data to compute the escaped length for</param>
 /// <param name="flags">The flags to modify the escaping behavior</param>
 /// <returns>Returns the length of the escaped data</returns>
 public static long ComputeLength(byte[] data, UrlEscapeFlags flags)
 {
     return(UrlEscapeUtility.ComputeLength(data, flags));
 }
예제 #2
0
 /// <summary>
 /// Compute length of the data after escaping its values
 /// </summary>
 /// <param name="data">The data to compute the escaped length for</param>
 /// <param name="encoding">The encoding to use to convert the string into a byte array</param>
 /// <param name="flags">The flags to modify the escaping behavior</param>
 /// <returns>Returns the length of the escaped data</returns>
 public static long ComputeLength(string data, Encoding encoding, UrlEscapeFlags flags)
 {
     return(UrlEscapeUtility.ComputeLength(data, encoding, flags));
 }
예제 #3
0
 /// <summary>
 /// Compute length of the data after escaping its values
 /// </summary>
 /// <param name="data">The data to compute the escaped length for</param>
 /// <returns>Returns the length of the escaped data</returns>
 public static long ComputeLength(byte[] data)
 {
     return(UrlEscapeUtility.ComputeLength(data));
 }
예제 #4
0
 /// <summary>
 /// Compute length of the data after escaping its values
 /// </summary>
 /// <param name="data">The data to compute the escaped length for</param>
 /// <returns>Returns the length of the escaped data</returns>
 public static long ComputeLength(string data)
 {
     return(UrlEscapeUtility.ComputeLength(data));
 }