DeserializationException.enforceSizeLimit

Ensures length len does not exceed hard size limit max

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

Parameters

S

type of the struct which is currently loaded

len size_t

length of a dynamic array to deserialize

max size_t

allowed maximum dynamic array length

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