예제 #1
0
 public void ForAll(EditItemDelegate action)
 {
     for (int i = 0; i < buffer.Length; i++)
     {
         action(ref buffer.Span[i]);
     }
 }
예제 #2
0
 public void ForAllParallel(EditItemDelegate a)
 {
     blocks.AsParallel().ForAll(block =>
     {
         for (int i = block.pos; i < block.length + block.pos; i++)
         {
             a(ref buffer.Span[i]);
         }
     });
 }