Archive.archiveSlice

Archives a slice.

This method should be used when archiving an array that is a slice of an already archived array or an array that has not yet been archived.

interface Archive
void
archiveSlice

Parameters

slice Slice

the slice to be archived

sliceId Id

the id associated with the slice

arrayId Id

the id associated with the array this slice is a slice of

Examples

auto arr = [1, 2, 3, 4];
auto slice = arr[1 .. 3];

auto archive = new XmlArchive!();
// archive "arr" with id 0

auto s = Slice(slice.length, 1);
archive.archiveSlice(s, 1, 0);

Meta