Exemple #1
0
 /// <summary>
 /// Fills a <see cref="IMemory{T}"/> with a given value.
 /// </summary>
 /// <param name="memory">Memory to fill.</param>
 /// <param name="value">Value to fill the memory with.</param>
 public static void Fill <T>(this IMemory <T> memory, T value)
 {
     memory.ForEach((idx, _) => memory[idx] = value);
 }