コード例 #1
0
ファイル: IrCommandBuilder.cs プロジェクト: yuritkach/Prana
        public IrCommandBuilder sequence(ISequenceDefinition definition, long topBit, int length, long data)
        {
            for (int index = 0; index < length; index++)
            {
                if ((data & topBit) != 0)
                {
                    definition.One(this, index);
                }
                else
                {
                    definition.Zero(this, index);
                }

                data <<= 1;
            }

            return(this);
        }