The value range a declared integer type admits (MESSAGE_SPEC §7.1).
§7/§7.1 turned the declared integer width from a storage hint into a validity bound: a wire value that does not fit the declared type is INVALID alongside M > N and maxlen, and MUST NOT be masked to the width, nor kept. The wire itself carries no width — every integer is a varint read into a 64-bit accumulator — so the width is a schema fact and has to reach the decoder the same way count and maxlen do (IStreamImpl::readArray, IStreamImpl::readString).
For a scalar a caller can range-check the value once IStreamImpl::read has returned it. An array element cannot be checked that way without decoding the whole array into a wider temporary and copying it down — precisely the cost the bulk path exists to avoid — so for arrays the bound rides into the read and is applied where each element is decoded.
Default-constructed it is unarmed, so an existing call site keeps the behaviour it had.
- Note
- The range is inclusive and applied in full: an element below lo or above hi makes the decode
INVALID. For an unsigned element type lo is consulted only when positive, since a varint cannot be negative.
Definition at line 2880 of file sofab.hpp.