System.SysUtils.TUnicodeEncoding.GetMaxByteCount

From RAD Studio API Documentation
Jump to: navigation, search

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.

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.

See Also