the array to archive
the runtime type of an element of the array
the key associated with the array
the id associated with the array
a callback that performs the archiving of the individual elements
int[] arr = [1, 2, 3]; auto archive = new XmlArchive!(); auto a = Array(arr.ptr, arr.length, typeof(a[0]).sizeof); archive.archive(a, typeof(a[0]).string, "arr", 0, { // archive the individual elements });
Archives an array.