LibUsbDotNet.Main.UsbRegistry.GetAsStringInt32 C# (CSharp) Method

GetAsStringInt32() static private method

static private GetAsStringInt32 ( byte buffer, int len ) : Int32
buffer byte
len int
return System.Int32
        internal static Int32 GetAsStringInt32(byte[] buffer, int len)
        {
            Int32 iRtn = 0;
            if (len == 4)
                iRtn = buffer[0] | ((buffer[1]) << 8) | ((buffer[2]) << 16) | ((buffer[3]) << 24);
            return iRtn;
        }
    }