TEncoding.GetString function
Return a string based on an array of bytes.
Declaration
function GetString(const Bytes: TBytes): UnicodeString; overload
function GetString(const Bytes: TBytes; ByteIndex: Integer;
ByteCount: Integer): UnicodeString; overloadDescription
GetString will return a Unicode string, created from the bytes in the
Bytes array.
The bytes array will be interpreted according to the encoding which the
TEncoding represents.
If ByteIndex and ByteCount are specified, only the ByteCount
bytes starting at position ByteIndex will be converted.
Errors
In case of invalid bytes, an
EEncodingError exception may be raised.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
