System.SysUtils.TUnicodeEncoding.GetChars

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function GetChars(Bytes: PByte; ByteCount: Integer; Chars: PChar; CharCount: Integer): Integer; overload; override;

C++

virtual int __fastcall GetChars(System::PByte Bytes, int ByteCount, System::WideChar * Chars, int CharCount)/* overload */;
inline System::DynamicArray<System::WideChar> __fastcall  GetChars(const System::Byte *Bytes, const int Bytes_High){ return TEncoding::GetChars(Bytes, Bytes_High); }
inline System::DynamicArray<System::WideChar> __fastcall  GetChars(const System::DynamicArray<System::Byte> Bytes){ return TEncoding::GetChars(Bytes); }
inline System::DynamicArray<System::WideChar> __fastcall  GetChars(const System::Byte *Bytes, const int Bytes_High, int ByteIndex, int ByteCount){ return TEncoding::GetChars(Bytes, Bytes_High, ByteIndex, ByteCount); }
inline System::DynamicArray<System::WideChar> __fastcall  GetChars(const System::DynamicArray<System::Byte> Bytes, int ByteIndex, int ByteCount){ return TEncoding::GetChars(Bytes, ByteIndex, ByteCount); }
inline int __fastcall  GetChars(const System::Byte *Bytes, const int Bytes_High, int ByteIndex, int ByteCount, const System::WideChar *Chars, const int Chars_High, int CharIndex){ return TEncoding::GetChars(Bytes, Bytes_High, ByteIndex, ByteCount, Chars, Chars_High, CharIndex); }
inline int __fastcall  GetChars(const System::DynamicArray<System::Byte> Bytes, int ByteIndex, int ByteCount, const System::DynamicArray<System::WideChar> Chars, int CharIndex){ return TEncoding::GetChars(Bytes, ByteIndex, ByteCount, Chars, CharIndex); }

Propriétés

Type Visibilité  Source Unité  Parent
function
class protected
public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TUnicodeEncoding

Description

Décode un ensemble d'octets en un ensemble de caractères.

GetChars génère un nombre de caractères en décodant Bytes. Le tableau suivant liste les paramètres attendus par la méthode GetChars et leur description.



Paramètre Description

Bytes

Un pointeur d'octet ou un tableau d'octets.

ByteCount

Spécifie le nombre d'octets à décoder. S'il est absent, tous les octets seront décodés.

Chars

Un pointeur sur la destination des caractères décodés.

CharCount

Spécifie le nombre maximal de caractères à stocker.



La valeur de retour est un tableau de caractères décodés, ou le nombre de caractères décodés.

Voir aussi