Decoder.GetCharCount Method (Byte*, Int32, Boolean)
When overridden in a derived class, calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. A parameter indicates whether to clear the internal state of the decoder after the calculation.
Assembly: mscorlib (in mscorlib.dll)
[SecurityCriticalAttribute] [CLSCompliantAttribute(false)] [ComVisibleAttribute(false)] public virtual int GetCharCount( byte* bytes, int count, bool flush )
- Type: System.Byte*
A pointer to the first byte to decode.
- Type: System.Int32
The number of bytes to decode.
- Type: System.Boolean
true to simulate clearing the internal state of the encoder after the calculation; otherwise, false.
Return ValueType: System.Int32
The number of characters produced by decoding the specified sequence of bytes and any bytes in the internal buffer.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.