System.SysUtils.TUnicodeEncoding.GetCharCount
Delphi
function GetCharCount(Bytes: PByte; ByteCount: Integer): Integer; overload; override;
C++
virtual int __fastcall GetCharCount(Winapi::Windows::PByte Bytes, int ByteCount)/* overload */;
inline int __fastcall  GetCharCount(const System::Byte *Bytes, const System::NativeInt Bytes_High){ return TEncoding::GetCharCount(Bytes, Bytes_High); }
inline int __fastcall  GetCharCount(const TBytes Bytes){ return TEncoding::GetCharCount(Bytes); }
inline int __fastcall  GetCharCount(const System::Byte *Bytes, const System::NativeInt Bytes_High, int ByteIndex, int ByteCount){ return TEncoding::GetCharCount(Bytes, Bytes_High, ByteIndex, ByteCount); }
inline int __fastcall  GetCharCount(const TBytes Bytes, int ByteIndex, int ByteCount){ return TEncoding::GetCharCount(Bytes, ByteIndex, ByteCount); }
Propriétés
| Type | Visibilité | Source | Unité | Parent | 
|---|---|---|---|---|
| function | class protected public  | 
		System.SysUtils.pas System.SysUtils.hpp  | 
        System.SysUtils | TUnicodeEncoding | 
Description
Calcule le nombre de caractères généré en décodant une séquence d'octets.
GetCharCount génère un nombre de caractères en décodant Bytes. Le tableau suivant liste les paramètres attendus par cette méthode et leur description.
| Paramètre | Description | 
|---|---|
| 
 Bytes  | 
 Un tableau d'octets ou un pointeur d'octet.  | 
| 
 ByteCount  | 
 Spécifie le nombre d'octets à décoder.  | 
La valeur de retour est le nombre de caractères décodés.