System.SysUtils.TEncoding.GetMaxByteCount
Delphi
function GetMaxByteCount(CharCount: Integer): Integer; virtual; abstract;
C++
virtual int __fastcall GetMaxByteCount(int CharCount) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | TEncoding |
Description
Calculates the maximum number of bytes generated to encode the specified number of characters.
TEncoding.GetMaxByteCount calculates the maximum bytes generated to encode CharCount number of characters.
CharCount must be a positive integer.
The Return Value is the calculated number of bytes.
See Also