コード例 #1
0
        public unsafe                          ProfilerRecorderSample[] ToArray()
        {
            CheckInitializedAndThrow();

            var count = Count;
            var array = new ProfilerRecorderSample[count];

            fixed(ProfilerRecorderSample *p = array)
            {
                _ = CopyTo_Pointer(this, p, count, false);
            }

            return(array);
        }
コード例 #2
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);
        }
コード例 #3
0
 private static extern void GetSampleInternal_Injected(ref ProfilerRecorder handle, int index, out ProfilerRecorderSample ret);