System.Xml.IncrementalReadCharsDecoder.Decode C# (CSharp) Method

Decode() private method

private Decode ( string str, int startPos, int len ) : int
str string
startPos int
len int
return int
        internal override int Decode( string str, int startPos, int len ) { 
            Debug.Assert( str != null );
            Debug.Assert( len >= 0 );
            Debug.Assert( startPos >= 0 );
            Debug.Assert( str.Length - startPos >= len );

            Debug.Assert( len > 0 );

            int copyCount = endIndex - curIndex;
            if ( copyCount > len ) {
                copyCount = len;
            }
            str.CopyTo( startPos, buffer, curIndex, copyCount );
            curIndex += copyCount;

            return copyCount;
        }

Same methods

IncrementalReadCharsDecoder::Decode ( char chars, int startPos, int len ) : int