MCPcopy Create free account
hub / github.com/boostorg/json / ensure

Function ensure

example/cbor.cpp:161–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161void
162ensure( std::size_t n, const unsigned char* first, const unsigned char* last )
163{
164 if( static_cast<std::size_t>(last - first) < n )
165 throw_eof_error();
166}
167
168const unsigned char*
169parse_cbor_value(

Callers 6

parse_cbor_numberFunction · 0.85
parse_cbor_stringFunction · 0.85
parse_cbor_arrayFunction · 0.85
parse_cbor_objectFunction · 0.85
parse_cbor_type7Function · 0.85
parse_cbor_valueFunction · 0.85

Calls 1

throw_eof_errorFunction · 0.85

Tested by

no test coverage detected