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

Function serialize_cbor_string

example/cbor.cpp:64–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void
65serialize_cbor_string( string_view sv, std::vector<unsigned char>& out )
66{
67 std::size_t n = sv.size();
68 serialize_cbor_number( 3, n, out );
69
70 out.insert( out.end(), sv.data(), sv.data() + n );
71}
72
73void
74serialize_cbor_value( const value& jv, std::vector<unsigned char>& out )

Callers 1

serialize_cbor_valueFunction · 0.85

Calls 5

serialize_cbor_numberFunction · 0.85
sizeMethod · 0.45
insertMethod · 0.45
endMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected