API:System.SysUtils.TMBCSEncoding.GetChars
Delphi
function GetChars(Bytes: PByte; ByteCount: Integer; Chars: PChar; CharCount: Integer): Integer; overload; override;
C++
virtual int __fastcall GetChars(Winapi::Windows::PByte Bytes, int ByteCount, System::WideChar * Chars, int CharCount)/* overload */;
inline TCharArray __fastcall GetChars(const System::Byte *Bytes, const System::NativeInt Bytes_High){ return TEncoding::GetChars(Bytes, Bytes_High); }
inline TCharArray __fastcall GetChars(const TBytes Bytes){ return TEncoding::GetChars(Bytes); }
inline TCharArray __fastcall GetChars(const System::Byte *Bytes, const System::NativeInt Bytes_High, int ByteIndex, int ByteCount){ return TEncoding::GetChars(Bytes, Bytes_High, ByteIndex, ByteCount); }
inline TCharArray __fastcall GetChars(const TBytes Bytes, int ByteIndex, int ByteCount){ return TEncoding::GetChars(Bytes, ByteIndex, ByteCount); }
inline int __fastcall GetChars(const System::Byte *Bytes, const System::NativeInt Bytes_High, int ByteIndex, int ByteCount, const System::WideChar *Chars, const System::NativeInt Chars_High, int CharIndex){ return TEncoding::GetChars(Bytes, Bytes_High, ByteIndex, ByteCount, Chars, Chars_High, CharIndex); }
inline int __fastcall GetChars(const TBytes Bytes, int ByteIndex, int ByteCount, const TCharArray 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.
System.SysUtils.TMBCSEncoding.GetChars inherits from System.SysUtils.TEncoding.GetChars. All content below this line refers to System.SysUtils.TEncoding.GetChars.
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