System.SysUtils.PlatformBytesOf

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function PlatformBytesOf(const Value: string): TBytes;

C++

extern DELPHI_PACKAGE System::DynamicArray<System::Byte> __fastcall PlatformBytesOf(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 string into a byte array.

Call PlatformBytesOf to convert a string or a character into an array of bytes. On Windows NT, Unicode locale is used to convert the strings into byte arrays; on the other platforms, the default system locale is used.

See Also