System.SysUtils.TMBCSEncoding.GetChars
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); }
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | class protected public |
System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | TMBCSEncoding |
Description
Decodes a set of bytes into a set of characters.
GetChars generates a number of characters by decoding Bytes. The following table lists the parameters expected by this method and their description.
Parameter | Description |
---|---|
Bytes |
A byte pointer or a byte array. |
ByteCount |
Specifies the number of bytes to decode. If not present, all bytes will be decoded. |
Chars |
A pointer to the destination of the decoded characters. |
CharCount |
Specifies the maximum number of characters to store. |
The return value is either a character array of the decoded characters or the number of decoded characters.