Пример #1
0
        public unsafe ProfilerRecorderSample[] ToArray()
        {
            this.CheckInitializedAndThrow();
            int count = this.Count;

            ProfilerRecorderSample[] array = new ProfilerRecorderSample[count];
            ProfilerRecorderSample[] array2;
            ProfilerRecorderSample * outSamples;

            if ((array2 = array) == null || array2.Length == 0)
            {
                outSamples = null;
            }
            else
            {
                outSamples = &array2[0];
            }
            ProfilerRecorder.CopyTo_Pointer(this, outSamples, count, false);
            array2 = null;
            return(array);
        }
Пример #2
0
 public unsafe int CopyTo(ProfilerRecorderSample *dest, int destSize, bool reset = false)
 {
     this.CheckInitializedWithParamsAndThrow(dest);
     return(ProfilerRecorder.CopyTo_Pointer(this, dest, destSize, reset));
 }