Build() public method

public Build ( List sortedList, int n ) : void
sortedList List
n int
return void
Example #1
0
 public override Bitmap Unravel(int sym)
 {
     var L = new List<int> ();
     var n = this.SEQ.Count;
     for (int i = 0; i < n; ++i) {
         if (this.SEQ[i] == sym) {
             L.Add (i);
         }
     }
     var slist = new SortedList();
     slist.Build(L, n);
     return slist;
 }
Example #2
0
 public static BitmapFromBitStream GetPlainSortedList_wt()
 {
     return delegate (FakeBitmap b) {
         var rs = new SortedList ();
         rs.Build (new List<int>(CreateSortedList (b)), b.Count);
         return rs;
     };
 }
Example #3
0
 public static BitmapFromList GetPlainSortedList()
 {
     return delegate (IList<int> L) {
         var rs = new SortedList ();
         rs.Build (new List<int>(L));
         return rs;
     };
 }