ArchiveBase.fromData

Converts the given value from the type used for archiving to T.

class ArchiveBase(U)
protected
T
fromData
(
T
U
)
(
const(U)[] value
)

Parameters

T

the type to convert the given value to

value const(U)[]

the value to convert

Return Value

Type: T

the converted value

Throws

SerializationException if the conversion failed

Examples

auto i = fromData!(int)("3");
assert(i == 3);

See Also

toData

Meta