| 1799 | } |
| 1800 | |
| 1801 | int pn_data_put_binary(pn_data_t *data, pn_bytes_t bytes) |
| 1802 | { |
| 1803 | pni_node_t *node = pni_data_add(data); |
| 1804 | if (node == NULL) return PN_OUT_OF_MEMORY; |
| 1805 | node->atom.type = PN_BINARY; |
| 1806 | node->atom.u.as_bytes = bytes; |
| 1807 | return pni_data_intern_node(data, node); |
| 1808 | } |
| 1809 | |
| 1810 | int pn_data_put_string(pn_data_t *data, pn_bytes_t string) |
| 1811 | { |
no test coverage detected