NaData

For storing data of varying data types

Constructors

this
this(T value)

constructor

Members

Properties

value
T value [@property setter]

value. ** do not use this for arrays, aside from string **

value
T value [@property getter]

value. ** do not use this for arrays, aside from string **

Variables

argData
ubyte[] argData;

the actual data

Examples

assert(NaData(cast(integer)1025).value!integer == 1025);
assert(NaData("hello").value!string == "hello");
assert(NaData(cast(double)50.5).value!double == 50.5);
assert(NaData('a').value!char == 'a');
assert(NaData(true).value!bool == true);

Meta