System.Text.EncoderNLS.GetByteCount C# (CSharp) Method

GetByteCount() private method

private GetByteCount ( char chars, int count, bool flush ) : int
chars char
count int
flush bool
return int
        public unsafe override int GetByteCount(char* chars, int count, bool flush)
        {
            // Validate input parameters
            if (chars == null)
                throw new ArgumentNullException(nameof(chars), SR.ArgumentNull_Array);

            if (count < 0)
                throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum);
            Contract.EndContractBlock();

            m_mustFlush = flush;
            m_throwOnOverflow = true;
            return m_encoding.GetByteCount(chars, count, this);
        }

Same methods

EncoderNLS::GetByteCount ( char chars, int index, int count, bool flush ) : int