Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }