API:System.SysUtils.TUTF7Encoding.GetMaxByteCount
Delphi
function GetMaxByteCount(CharCount: Integer): Integer; override;
C++
virtual int __fastcall GetMaxByteCount(int CharCount);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | TUTF7Encoding |
Description
Calculates the maximum number of bytes generated to encode the specified number of characters.
System.SysUtils.TUTF7Encoding.GetMaxByteCount inherits from System.SysUtils.TMBCSEncoding.GetMaxByteCount. All content below this line refers to System.SysUtils.TMBCSEncoding.GetMaxByteCount.
Calculates the maximum number of bytes generated to encode the specified number of characters.
GetMaxByteCount calculates the maximum number of bytes generated to encode a CharCount number of characters. The following table lists the parameters expected by this method and their description.
Parameter | Description |
---|---|
CharCount |
A positive integer specifying the number of characters. |
The return value is the calculated number of bytes.