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); }
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); }
private static extern void GetSampleInternal_Injected(ref ProfilerRecorder handle, int index, out ProfilerRecorderSample ret);