Skip to content

TEncoding.GetMaxByteCount

Returns the maximum number of bytes needed to represent a string

Declaration

Source position: sysencodingh.inc line 86

public 
  function GetMaxByteCount(CharCount: Integer) : Integer;  Virtual
                          ;  Abstract;

Description

GetMaxByteCount returns the maximum number of bytes needed to represent a string of CharCount characters in the given encoding.

This is an abstract method, implemented by descendents of TEncoding.

See also

Name Description
TEncoding.GetMaxCharCount Return the maximum number of characters that can be represented in a number of bytes