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

Function parse_cbor_string

example/cbor.cpp:218–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218const unsigned char*
219parse_cbor_string(
220 const unsigned char* first, const unsigned char* last, unsigned char ch, value& v )
221{
222 std::uint64_t n;
223 first = parse_cbor_number( first, last, ch, n );
224
225 ensure( n, first, last );
226
227 string_view sv( reinterpret_cast<char const*>( first ), n );
228 first += n;
229
230 v = sv;
231 return first;
232}
233
234const unsigned char*
235parse_cbor_array(

Callers 1

parse_cbor_valueFunction · 0.85

Calls 2

parse_cbor_numberFunction · 0.85
ensureFunction · 0.85

Tested by

no test coverage detected