ArchiveBase.toData

Converts the given value into the type used for archiving.

class ArchiveBase(U)
protected
toData
(
T
)
()

Parameters

value T

the value to convert

Return Value

Type: Data

the converted value

Throws

SerializationException if the conversion failed

Examples

auto i = toData(3);
assert(i == "3");

See Also

fromData floatingPointToData

Meta