CSharp examples for System:Array Element
Fills the buffer with the specified value.
using System.Runtime.InteropServices; using System.Linq; using System.Collections.Generic; using System.Collections; using System;//from w ww. j a v a2s.c o m public class Main{ /// <summary> /// Fills the buffer with the specified value. /// </summary> public static void Fill(ArrayPtr<T> buffer, T value, int count) { int last = buffer._index + count; for (int index = buffer._index; index < last; ++index) buffer._buffer[index] = value; } }