Serializer.countRequiredSize

Return the serialized length of input

struct Serializer
static
size_t
countRequiredSize
(
S
)
(
ref S input
)
out (size) { debug(SerializationTrace) { Stdout.formatln("< countRequiredSize!({})(<input>) : {}", S.stringof, cast(size_t)size); } }

Parameters

S

type of the struct

input S

struct to get the serialized length of

Return Value

Type: size_t

serialized length of input

Meta