Show: Delphi C++
Display Preferences

System.SysUtils.TEncoding.GetChars

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetChars(Bytes: PByte; ByteCount: Integer; Chars: PChar; CharCount: Integer): Integer; overload; virtual; abstract;
function GetChars(const Bytes: array of Byte): TCharArray; overload;
function GetChars(const Bytes: TBytes): TCharArray; overload; inline;
function GetChars(const Bytes: array of Byte; ByteIndex, ByteCount: Integer): TCharArray; overload;
function GetChars(const Bytes: TBytes; ByteIndex, ByteCount: Integer): TCharArray; overload;
function GetChars(const Bytes: array of Byte; ByteIndex, ByteCount: Integer;  const Chars: array of Char; CharIndex: Integer): Integer; overload;
function GetChars(const Bytes: TBytes; ByteIndex, ByteCount: Integer;  const Chars: TCharArray; CharIndex: Integer): Integer; overload;

C++

virtual int __fastcall GetChars(System::PByte Bytes, int ByteCount, System::WideChar * Chars, int CharCount) = 0 /* overload */;
System::DynamicArray<System::WideChar> __fastcall GetChars(const System::Byte *Bytes, const int Bytes_High)/* overload */;
System::DynamicArray<System::WideChar> __fastcall GetChars(const System::DynamicArray<System::Byte> Bytes)/* overload */;
System::DynamicArray<System::WideChar> __fastcall GetChars(const System::Byte *Bytes, const int Bytes_High, int ByteIndex, int ByteCount)/* overload */;
System::DynamicArray<System::WideChar> __fastcall GetChars(const System::DynamicArray<System::Byte> Bytes, int ByteIndex, int ByteCount)/* overload */;
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)/* overload */;
int __fastcall GetChars(const System::DynamicArray<System::Byte> Bytes, int ByteIndex, int ByteCount, const System::DynamicArray<System::WideChar> Chars, int CharIndex)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TEncoding

Description

Decodes a set of bytes into a set of characters.

TEncoding.GetChars generates a number of characters by decoding Bytes.

Bytes can be a byte pointer or a byte array.

ByteIndex specifies the first byte to decode. If not present, the index is 0.

ByteCount specifies the number of bytes to decode. If not present, all bytes will be decoded.

Chars is a pointer to the destination of the decoded characters.

CharIndex specifies where in 'Chars' to start writing results.

The Return Value is either a character array of the decoded characters or the number of characters decoded.

See Also


Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance