Returns the number of characters required to decode an array of bytes.
[Visual Basic] Overloads Overridable Public Function GetCharCount( _ ByVal bytes() As Byte _ ) As Integer [C#] public virtual int GetCharCount( byte[] bytes ); [C++] public: virtual int GetCharCount( unsigned char* bytes[] ); [JScript] public function GetCharCount( bytes : Byte[] ) : int;
The number of characters produced by decoding the specified byte array.
Exception Type | Condition |
---|---|
ArgumentException | bytes is a null reference (in Visual Basic Nothing). |
Encoding Class | Encoding Members | System.Text Namespace | Encoding.GetCharCount Overload List