Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

BytesOf

Return the bytes of a string in a TBytes array.

Declaration

Source position: sysansih.inc line 25

function BytesOf(

  const Val: RawByteString

):TBytes;

function BytesOf(

  const Val: AnsiChar

):TBytes;

function BytesOf(

  const Val: UnicodeString

):TBytes; overload;

function BytesOf(

  const Val: WideChar

):TBytes; overload;

Description

BytesOf returns a copy of the string's content as an array of bytes. For an empty string, zero bytes are returned (i.e. length(BytesOf(S))=0).

See also

TBytes

  

Array of byte.


Documentation generated on: Nov 22 2024