System.SysUtils.TUnicodeEncoding.GetCharCount

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function GetCharCount(Bytes: PByte; ByteCount: Integer): Integer; overload; override;

C++

virtual int __fastcall GetCharCount(System::PByte Bytes, int ByteCount)/* overload */;
inline int __fastcall  GetCharCount(const System::Byte *Bytes, const int Bytes_High){ return TEncoding::GetCharCount(Bytes, Bytes_High); }
inline int __fastcall  GetCharCount(const System::DynamicArray<System::Byte> Bytes){ return TEncoding::GetCharCount(Bytes); }
inline int __fastcall  GetCharCount(const System::Byte *Bytes, const int Bytes_High, int ByteIndex, int ByteCount){ return TEncoding::GetCharCount(Bytes, Bytes_High, ByteIndex, ByteCount); }
inline int __fastcall  GetCharCount(const System::DynamicArray<System::Byte> 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.

Voir aussi