DeserializationException.enforceInputSize

Throws this instance if len is not at lest required.

class DeserializationException
void
enforceInputSize
(
S
)
(
size_t len
,
size_t required
,
istring file = __FILE__
,
int line = __LINE__
)

Parameters

S

type of the struct that is currently loaded

len size_t

provided number of data bytes

required size_t

required number of data bytes

file istring

file where size limit is enforced

line int

line where size limit is enforced

Throws

this instance if len is not at most max.

Meta