unsafe void CheckInitializedWithParamsAndThrow(ProfilerRecorderSample *dest)
 {
     if (handle == 0)
     {
         throw new InvalidOperationException("ProfilerRecorder object is not initialized or has been disposed.");
     }
     if (dest == null)
     {
         throw new ArgumentNullException(nameof(dest));
     }
 }
Beispiel #2
0
        private unsafe void CheckInitializedWithParamsAndThrow(ProfilerRecorderSample *dest)
        {
            bool flag = this.handle == 0uL;

            if (flag)
            {
                throw new InvalidOperationException("ProfilerRecorder object is not initialized or has been disposed.");
            }
            bool flag2 = dest == null;

            if (flag2)
            {
                throw new ArgumentNullException("dest");
            }
        }
Beispiel #3
0
 private unsafe static extern int CopyTo_Pointer_Injected(ref ProfilerRecorder handle, ProfilerRecorderSample *outSamples, int outSamplesSize, bool reset);
Beispiel #4
0
 private unsafe static int CopyTo_Pointer(ProfilerRecorder handle, ProfilerRecorderSample *outSamples, int outSamplesSize, bool reset)
 {
     return(ProfilerRecorder.CopyTo_Pointer_Injected(ref handle, outSamples, outSamplesSize, reset));
 }
Beispiel #5
0
 public unsafe int CopyTo(ProfilerRecorderSample *dest, int destSize, bool reset = false)
 {
     this.CheckInitializedWithParamsAndThrow(dest);
     return(ProfilerRecorder.CopyTo_Pointer(this, dest, destSize, reset));
 }
 static extern unsafe int CopyTo_Pointer(ProfilerRecorder handle, ProfilerRecorderSample *outSamples, int outSamplesSize, bool reset);