Esempio n. 1
0
 public async Task EnumerateValuesOrdered()
 {
     await foreach (var row in trie.EnumerateStartsWith(""))
     {
         row.Dispose();
     }
 }
Esempio n. 2
0
 public void Setup()
 {
     t = new Tester();
     t.ConsistencyCheck = false;
     key  = Encoding.UTF8.GetBytes("cf6c9e8cb9fb312862edbd5c2b7d1615db4f65ab");
     fs   = t.CreateFileStorage("10000007", true, "Benchmark");
     trie = t.CreateTrie(fs, false).GetAwaiter().GetResult();
     (trie.EnumerateStartsWith("").ToArrayAsync().GetAwaiter().GetResult()).DisposeAll();
 }