NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

UTF7Encoding.GetMaxCharCount

Returns the maximum number of characters produced by decoding a specified number of bytes.

[Visual Basic]
Overrides Public Function GetMaxCharCount( _
   ByVal byteCount As Integer _
) As Integer
[C#]
public override int GetMaxCharCount(
   int byteCount
);
[C++]
public: override int GetMaxCharCount(
   int byteCount
);
[JScript]
public override function GetMaxCharCount(
   byteCount : int
) : int;

Parameters

byteCount
The number of bytes to decode.

Return Value

The maximum number of characters produced by decoding a specified number of bytes.

Remarks

This method can be used to determine an appropriate buffer size for character arrays passed to GetChars or GetChars for this encoding. All encoding must guarantee that no buffer overflow exceptions will occur if buffers are sized according to the results of this method.

See Also

UTF7Encoding Class | UTF7Encoding Members | System.Text Namespace | GetChars | GetChars