Copies the contents of one array to another, setting the length of the destination array first.
This function is provided as a shorthand for this common operation.
Template params: T = type of array element
reference to the destination array
dest
Buffer!(char) dest; cstring src = "hello"; copy(dest, src); test!("==")(dest[], "hello"[]);
See Implementation
Copies the contents of one array to another, setting the length of the destination array first.
This function is provided as a shorthand for this common operation.
Template params: T = type of array element