WideBytesOf

Returns the contents of a widestring as an array of bytes

Declaration

Source position: sysunih.inc line 67

  function WideBytesOf(const Value: UnicodeString) : TBytes;

Description

WideBytesOf returns the contents of the widestring Value as an array of bytes. The array will have as length twice the length of the wide string, as each wide character contains 2 bytes.

See also

Name Description
StringOf Create a Unicode string from an array of bytes