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

Function pn_data_get_float

c/src/core/codec.c:2012–2020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2010}
2011
2012float pn_data_get_float(pn_data_t *data)
2013{
2014 pni_node_t *node = pni_data_current(data);
2015 if (node && node->atom.type == PN_FLOAT) {
2016 return node->atom.u.as_float;
2017 } else {
2018 return 0;
2019 }
2020}
2021
2022double pn_data_get_double(pn_data_t *data)
2023{

Callers 4

get_floatMethod · 0.85
decoder.cppFile · 0.85
pn_data_vscanFunction · 0.85
pn_data_appendnFunction · 0.85

Calls 1

pni_data_currentFunction · 0.85

Tested by

no test coverage detected