appendCopy

Appends an element to a list of arrays, and copies the contents of the passed source array into the new element, 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

  1. void appendCopy(Buffer!(T)[] dest, T2[] src)
    void
    appendCopy
    (
    T
    T2
    )
    (
    ref Buffer!(T)[] dest
    ,
    T2[] src
    )
  2. void appendCopy(T[][] dest, T2[] src)

Parameters

dest Buffer!(T)[]

reference to the destination array list

Return Value

Type: void

dest

Examples

Buffer!(char)[] dest;
cstring src = "hello";
appendCopy(dest, src);
test!("==")(dest[0][], "hello");

Meta