RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMBCSEncoding.GetMaxByteCount Method

Calculates the maximum bytes generated to encode the specified number of characters.

Pascal
function GetMaxByteCount(CharCount: Integer): Integer; override;
C++
virtual __fastcall int GetMaxByteCount(int CharCount);

TEncoding.GetMaxByteCount calculates the maximum bytes generated to encode CharCount number of characters. 

CharCount must be a positive integer. 

The Return Value is the number of bytes calculated. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!