public unsafe abstract int GetCharCount(byte* bytes, int count, DecoderNLS decoder);
public override unsafe int GetCharCount(byte *bytes, int count, bool flush) { if (bytes is null) { throw new ArgumentNullException(nameof(bytes)); } if (count < 0) { throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); } // Remember the flush m_mustFlush = flush; m_throwOnOverflow = true; // By default just call the encoding version, no flush by default return(m_encoding.GetCharCount(bytes, count, this)); }