LibUsbDotNet.Main.UsbRegistry.GetAsGuid C# (CSharp) Метод

GetAsGuid() статический приватный Метод

static private GetAsGuid ( byte buffer, int len ) : System.Guid
buffer byte
len int
Результат System.Guid
        internal static Guid GetAsGuid(byte[] buffer, int len)
        {
            Guid rtn = Guid.Empty;
            if (len == 16)
            {
                byte[] guidBytes = new byte[len];
                Array.Copy(buffer, guidBytes, guidBytes.Length);
                rtn = new Guid(guidBytes);
            }

            return rtn;
        }