Sign in Join
FPDoc Onlineexperiment

BytesOf function

In unit sysutils

Return the bytes of a string in a TBytes array.

Declaration

pascal
function BytesOf(const Val: RawByteString): TBytes

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.