﻿// Decompiled with JetBrains decompiler
// Type: AForge.Video.DirectShow.Internals.CAUUID
// Assembly: PluginRemoteWebcam, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 264B4BD0-AE99-4418-804A-8A34B1A0A20B
// Assembly location: C:\Users\ian\Downloads\Telegram Desktop\fein\Plugins\PluginRemoteWebcam.dll

using System;
using System.Runtime.InteropServices;


namespace AForge.Video.DirectShow.Internals
{
	[ComVisible(false)]
	internal struct CAUUID
	{
		public int cElems;
		public IntPtr pElems;

		public Guid[] ToGuidArray()
		{
			Guid[] guidArray = new Guid[this.cElems];
			for (int index = 0; index < this.cElems; ++index)
			{
				IntPtr ptr = new IntPtr(this.pElems.ToInt64() + (long) (index * Marshal.SizeOf(typeof (Guid))));
				guidArray[index] = (Guid) Marshal.PtrToStructure(ptr, typeof (Guid));
			}
			return guidArray;
		}
	}
}
