| 216 | } |
| 217 | |
| 218 | const unsigned char* |
| 219 | parse_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 | |
| 234 | const unsigned char* |
| 235 | parse_cbor_array( |
no test coverage detected