DevCap.SevenZip.Compress.LZMA.Base.GetLenToPosState C# (CSharp) Method

GetLenToPosState() public static method

public static GetLenToPosState ( uint len ) : uint
len uint
return uint
        public static uint GetLenToPosState(uint len)
        {
            len -= kMatchMinLen;
            if (len < kNumLenToPosStates)
                return len;
            return (uint)(kNumLenToPosStates - 1);
        }