AnimalCrossingQR.StructuredAppendQR.GetSmallestVersion C# (CSharp) Method

GetSmallestVersion() private static method

private static GetSmallestVersion ( int size, ErrorCorrectionLevel errorCorrectionLevel ) : int
size int
errorCorrectionLevel ZXing.QrCode.Internal.ErrorCorrectionLevel
return int
        private static int GetSmallestVersion(int size, ErrorCorrectionLevel errorCorrectionLevel)
        {
            return Array.FindIndex(MaxQRSize[errorCorrectionLevel.ordinal()], i => i >= size) + 1;
        }