| 1808 | } |
| 1809 | |
| 1810 | int pn_data_put_string(pn_data_t *data, pn_bytes_t string) |
| 1811 | { |
| 1812 | pni_node_t *node = pni_data_add(data); |
| 1813 | if (node == NULL) return PN_OUT_OF_MEMORY; |
| 1814 | node->atom.type = PN_STRING; |
| 1815 | node->atom.u.as_bytes = string; |
| 1816 | return pni_data_intern_node(data, node); |
| 1817 | } |
| 1818 | |
| 1819 | int pn_data_put_symbol(pn_data_t *data, pn_bytes_t symbol) |
| 1820 | { |
no test coverage detected