Converts a string into a byte array.
function BytesOf(const Val: RawByteString): TBytes; overload; function BytesOf(const Val: UnicodeString): TBytes; overload; function BytesOf(const Val: WideChar): TBytes; overload; function BytesOf(const Val: AnsiChar): TBytes; overload;
TBytes BytesOf(const RawByteString Val); TBytes BytesOf(const UnicodeString Val); TBytes BytesOf(const WideChar Val); TBytes BytesOf(const AnsiChar Val);
Call BytesOf to convert a string or a character to an array of bytes. Unicode strings and WideStrings are converted using the default system locale represented by the Default property of the TEncoding class.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|