/// <summary> /// /// </summary> /// <param name="_encoding"></param> /// <returns></returns> private EncodeMethod getEncoder(PackerEncoding _encoding) { switch (_encoding) { case PackerEncoding.Mid: return(encode36); case PackerEncoding.Normal: return(encode62); case PackerEncoding.HighAscii: return(encode95); default: return(encode10); } }
/// <summary> /// Constructor /// </summary> /// <param name="encoding">The encoding level for this instance</param> /// <param name="fastDecode">Adds a subroutine to the output to speed up decoding</param> /// <param name="specialChars">Replaces special characters</param> public ECMAScriptPacker(PackerEncoding encoding, bool fastDecode, bool specialChars) { Encoding = encoding; FastDecode = fastDecode; SpecialChars = specialChars; }
private EncodeMethod getEncoder(PackerEncoding encoding) { switch (encoding) { case PackerEncoding.Mid: return new EncodeMethod(encode36); case PackerEncoding.Normal: return new EncodeMethod(encode62); case PackerEncoding.HighAscii: return new EncodeMethod(encode95); default: return new EncodeMethod(encode10); } }
/// <summary> /// Constructor /// </summary> /// <param name="encoding">The encoding level for this instance</param> /// <param name="fastDecode">Adds a subroutine to the output to speed up decoding</param> /// <param name="specialChars">Replaces special characters</param> public ECMAScriptPackerWCF(PackerEncoding encoding, bool fastDecode, bool specialChars) { Encoding = encoding; FastDecode = fastDecode; SpecialChars = specialChars; }
/// <summary> /// Constructor /// </summary> /// <param name="encoding">The encoding level for this instance</param> /// <param name="fastDecode">Adds a subroutine to the output to speed up decoding</param> /// <param name="specialChars">Replaces special characters</param> public JavascriptPacker(PackerEncoding encoding, bool fastDecode, bool specialChars) { Encoding = encoding; FastDecode = fastDecode; SpecialChars = specialChars; }
private static EncodeMethod getEncoder(PackerEncoding encoding) { switch (encoding) { case PackerEncoding.Mid: return encode36; case PackerEncoding.Normal: return encode62; case PackerEncoding.HighAscii: return encode95; default: return encode10; } }