MCPcopy Create free account
hub / github.com/apache/qpid-proton / coerce

Function coerce

cpp/src/encoder.cpp:108–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106namespace {
107
108template <class T, class U> T coerce(const U &x) { return x; }
109template <> pn_uuid_t coerce(const uuid& x) { pn_uuid_t y; byte_copy(y, x); return y; }
110template <> pn_decimal32_t coerce(const decimal32 &x) { pn_decimal32_t y; byte_copy(y, x); return y; }
111template <> pn_decimal64_t coerce(const decimal64 &x) { pn_decimal64_t y; byte_copy(y, x); return y; }

Callers 1

sequence_testFunction · 0.70

Calls 1

byte_copyFunction · 0.85

Tested by 1

sequence_testFunction · 0.56