getDataSize

Get serialized data size at runtime. DataSize!() should be preferred if the type is known at compile time.

nothrow @nogc pure @safe
size_t
getDataSize

Examples

Get serialized data size at compile time.

assert(DataSize!(MsgpackType.posFixInt) == 1);

Meta