Exemplo n.º 1
0
        protected internal bool AdvanceWork(int numInBuffer)
        {
            var res = ProcessBuffer(numInBuffer, out var pushBack);

            if (pushBack > 0)
            {
                PreparingToWriteToBuffer();
                Buffer.PushBackFromBuffer(numInBuffer, pushBack);
            }

            return(res);
        }
Exemplo n.º 2
0
        protected internal ReadWithCommentResultType AdvanceWork(int numInBuffer, out bool madeProgress)
        {
            var res = ProcessBuffer(numInBuffer, out var pushBack);

            if (pushBack > 0)
            {
                PreparingToWriteToBuffer();
                Buffer.PushBackFromBuffer(numInBuffer, pushBack);
            }

            madeProgress = pushBack != numInBuffer;
            return(res);
        }