/// <exception cref="NGit.Diff.SimilarityIndex.TableFullException"></exception>
        private static SimilarityIndex Hash(string text)
        {
            SimilarityIndex src = new _SimilarityIndex_135();

            byte[] raw = Constants.Encode(text);
            src.SetFileSize(raw.Length);
            src.Hash(raw, 0, raw.Length);
            src.Sort();
            return(src);
        }
Exemplo n.º 2
0
		/// <exception cref="NGit.Diff.SimilarityIndex.TableFullException"></exception>
		private static SimilarityIndex Hash(string text)
		{
			SimilarityIndex src = new _SimilarityIndex_135();
			byte[] raw = Constants.Encode(text);
			src.SetFileSize(raw.Length);
			src.Hash(raw, 0, raw.Length);
			src.Sort();
			return src;
		}