System.SysUtils.WideBytesOf
Delphi
function WideBytesOf(const Value: UnicodeString): TBytes;
C++
extern DELPHI_PACKAGE System::DynamicArray<System::Byte> __fastcall WideBytesOf(const System::UnicodeString Value);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
Description
Converts a Unicode string into an array of bytes.
Call WideBytesOf to convert a Unicode string into an array of bytes. Strings are converted using the UTF-16 encoding, represented by the Unicode property of the TEncoding class.
Unlike the BytesOf routine, the resulting array of bytes contains two bytes per character in the input string.
See Also
Code Examples