bytes->reserve
Reserves capacity for bytes.
Target
Signature
1bytes->reserve(size::integer)Reserves capacity for bytes.
bytes->reserve is called with member syntax on a receiver value. bytes->reserve 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
size- Required value of type
integer. Supplysizepositionally unless the signature shows a keyword form.
Examples
Basic call
1bytes->reserve(1024)The example keeps binary work on bytes and converts only when text output is needed.