Exemplo n.º 1
0
        private void PushContext(EncoderContext ctx)
        {
            if (_contextStackPointer + 1 == _contextStack.Length)
            {
                throw new StackOverflowException("Too much nesting for context stack, increase expected nesting when creating the encoder");
            }

            _contextStack[++_contextStackPointer] = ctx;
        }
 protected override int CheckForMoreEffectiveEncodingMode(EncoderContext context) => EncodingMode;
Exemplo n.º 3
0
        private void PushContext(EncoderContext ctx) {
            if (_contextStackPointer + 1 == _contextStack.Length) {
                throw new StackOverflowException("Too much nesting for context stack, increase expected nesting when creating the encoder");
            }

            _contextStack[++_contextStackPointer] = ctx;
        }