示例#1
0
        /// <summary>
        /// Rotates bist in the LSB direction. Rotate puts the bits that 'fall off' onto the end.
        /// </summary>
        /// <param name="bStr"></param>
        /// <param name="distance">Amount the bits to rotate.</param>
        /// <returns></returns>
        public static BitString LSBRotate(BitString bStr, int distance)
        {
            var minDistance = distance % bStr.BitLength;

            return(BitString.MSBRotate(bStr, bStr.BitLength - minDistance));
        }