Version

Namespace struct is desired because most of symbols have very common and generic names.

Members

Aliases

Type
alias Type = ubyte

The type of the version number tag that is prepended to serialised data.

Static functions

extract
const(void)[] extract(void[] data, Version.Type ver)
Undocumented in source. Be warned that the author may not have intended to support it.
extract
void[] extract(void[] data, Version.Type ver)

Assumes that input is versioned struct chunk and extracts version number from it. Otherwise will return garbage

inject
void[] inject(Buffer!(void) data, Version.Type ver)
void[] inject(void[] data, Version.Type ver)

Writes version data in the beginning of provided data buffer. Grows buffer if it is too small. Call this function before actually writing any useful payload to the buffer or it will be overwritten.

Templates

Info
template Info(S)

Evaluates to version information of S if S is a versioned struct:

Meta