Encoder.GetByteCount Method (Char*, Int32, Boolean)
When overridden in a derived class, calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. A parameter indicates whether to clear the internal state of the encoder after the calculation.
Assembly: mscorlib (in mscorlib.dll)
[ComVisibleAttribute(false)] [SecurityCriticalAttribute] [CLSCompliantAttribute(false)] public virtual int GetByteCount( char* chars, int count, bool flush )
- Type: System.Char*
A pointer to the first character to encode.
- Type: System.Int32
The number of characters to encode.
- 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 bytes produced by encoding the specified characters and any characters in the internal buffer.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.