PowerTCP Mail for .NET
GetMaxByteCount Method




The number of characters to encode.
Calculates the maximum number of bytes required to encode a specified number of characters.
Syntax
Public Overrides Function GetMaxByteCount( _
   ByVal charCount As Integer _
) As Integer
Dim instance As ImapUTF7
Dim charCount As Integer
Dim value As Integer
 
value = instance.GetMaxByteCount(charCount)
public override int GetMaxByteCount( 
   int charCount
)
public: int GetMaxByteCount( 
   int charCount
) override 
public:
int GetMaxByteCount( 
   int charCount
) override 

Parameters

charCount
The number of characters to encode.

Return Value

The maximum number of bytes required to encode charCount number of characters.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptioncharCount is less than zero.
Remarks
Use GetByteCount(Char[],Int32,Int32) to calculate exactly, or GetMaxByteCount to calculate at most, the array size required by GetBytes(Char[],Int32,Int32,Byte[],Int32) to store encoded characters.
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