SysUtils.WideBytesOf
From RAD Studio VCL Reference
Contents |
Delphi Information
From SysUtils.pas
function WideBytesOf(const Value: string): TBytes;
Unit: SysUtils
Type: function
Visibility: public
C++ Information
From SysUtils.hpp
System::DynamicArray<unsigned char> __fastcall WideBytesOf(System::UnicodeString Value);
Unit: SysUtils
Type: function
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 Samples