API:System.SysUtils.TUnicodeEncoding.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 | TUnicodeEncoding |
Description
Calculates the maximum number of bytes generated to encode the specified number of characters.
System.SysUtils.TUnicodeEncoding.GetMaxByteCount inherits from System.SysUtils.TEncoding.GetMaxByteCount. All content below this line refers to System.SysUtils.TEncoding.GetMaxByteCount.
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