PowerTCP Mail for .NET
GetMaxCharCount Method




The number of bytes to decode.
Calculates the maximum number of characters that can result from decoding a specified number of bytes.
Syntax
Public Overrides Function GetMaxCharCount( _
   ByVal byteCount As Integer _
) As Integer
Dim instance As ImapUTF7
Dim byteCount As Integer
Dim value As Integer
 
value = instance.GetMaxCharCount(byteCount)
public override int GetMaxCharCount( 
   int byteCount
)
public: int GetMaxCharCount( 
   int byteCount
) override 
public:
int GetMaxCharCount( 
   int byteCount
) override 

Parameters

byteCount
The number of bytes to decode.

Return Value

The maximum number of characters that can result from decoding byteCount number of bytes.
Remarks
Use GetCharCount(Byte[],Int32,Int32) to calculate exactly, or GetMaxCharCount to calculate at most, the array size required by GetChars(Byte[],Int32,Int32,Char[],Int32) to store decoded bytes.
See Also

Reference

ImapUTF7 Class
ImapUTF7 Members


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic