Document.sizeT

Calculates the number of bytes taken up by an element in the HiBON serialized stream

struct Document
@nogc static pure
size_t
sizeT
(
T
Key
)
(,
Key key
,
const(T) x
)
if (
is(Key : const(char[])) ||
is(Key == uint)
)

Parameters

type Type

is the HIBON type

key Key

is the key name

x const(T)

is the value

Return Value

Type: size_t

The number of bytes taken up by the element