System.Xml.IncrementalReadCharsDecoder.Decode C# (CSharp) Méthode

Decode() private méthode

private Decode ( char chars, int startPos, int len ) : int
chars char
startPos int
len int
Résultat int
        internal override int Decode( char[] chars, int startPos, int len ) {
            Debug.Assert( chars != null );
            Debug.Assert( len >= 0 );
            Debug.Assert( startPos >= 0 );
            Debug.Assert( chars.Length - startPos >= len );

            Debug.Assert( len > 0 );

            int copyCount = endIndex - curIndex;
            if ( copyCount > len ) {
                copyCount = len;
            }
            Buffer.BlockCopy( chars, startPos * 2, buffer, curIndex * 2, copyCount * 2 );
            curIndex += copyCount;

            return copyCount;
        }

Same methods

IncrementalReadCharsDecoder::Decode ( string str, int startPos, int len ) : int