コード例 #1
0
    public void WInteger_Add4()
    {
        WInteger w = new WInteger(0, 0, 10);

        w.Add(10001);
        Assert.AreEqual(1, w.Value);
    }
コード例 #2
0
ファイル: SymbolStream.cs プロジェクト: lfwelove/GDK
        public void Splice(int targetStop)
        {
            int totalSymbols = 7;
            int topBuffer    = 3;

            streamFinished = true;
            currentStop    = new WInteger(targetStop, 0, symbols.Count);
            currentStop.Add(totalSymbols);
            spliceBuffer = totalSymbols + topBuffer;
        }