bytes->importBytes

Imports bytes into bytes.

Target member

Signature

1bytes->importBytes(b::bytes)

Imports bytes into bytes.

bytes->importBytes is called with member syntax on a receiver value. bytes->importBytes works with binary values. Convert strings to bytes before byte-level hashing or encoding, then convert back to a string only for display or transport.

Parameters

b
Required value of type bytes. Supply b positionally unless the signature shows a keyword form.

Examples

Basic call

1local(b) = bytes2#b->importBytes(bytes('Ada'))
The example keeps binary work on bytes and converts only when text output is needed.