public PersistentDictionaryTst(IPersistentStorage storage, int maxTokenLength, ITextEncoding encoding) { this.maxTokenByteLength = encoding.GetMaxEncodedLength(maxTokenLength); this.encoding = encoding; this.dictionary = new TernaryDictionary <byte, long>(storage); }
public PersistentDictionary(string folder, string fileNameDictionary, string fileNameOccurrences) { dictionary = new TernaryDictionary <char, long>(new FileStorage(Path.Combine(folder, fileNameDictionary))); }