| 2083 | } |
| 2084 | |
| 2085 | pn_bytes_t pn_data_get_string(pn_data_t *data) |
| 2086 | { |
| 2087 | pni_node_t *node = pni_data_current(data); |
| 2088 | if (node && node->atom.type == PN_STRING) { |
| 2089 | return node->atom.u.as_bytes; |
| 2090 | } else { |
| 2091 | pn_bytes_t t = {0}; |
| 2092 | return t; |
| 2093 | } |
| 2094 | } |
| 2095 | |
| 2096 | pn_bytes_t pn_data_get_symbol(pn_data_t *data) |
| 2097 | { |
no test coverage detected