Deserializer.countRequiredSize

Calculates total amount of bytes needed for an array to store deserialized S instance.

struct Deserializer
static
size_t
countRequiredSize
(
S
)
(
in void[] instance
)
out (size) { debug(DeserializationTrace) { Stdout.formatln("{}< countRequiredSize!({})({}) : {}", tabs, S.stringof, instance.ptr, size); nesting--; } }

Parameters

S

struct type instance is assumed to contain

instance void[]

serialized struct buffer to calculate data for

Return Value

Type: size_t

required array size, total

Meta