| 1920 | } |
| 1921 | |
| 1922 | int8_t pn_data_get_byte(pn_data_t *data) |
| 1923 | { |
| 1924 | pni_node_t *node = pni_data_current(data); |
| 1925 | if (node && node->atom.type == PN_BYTE) { |
| 1926 | return node->atom.u.as_byte; |
| 1927 | } else { |
| 1928 | return 0; |
| 1929 | } |
| 1930 | } |
| 1931 | |
| 1932 | uint16_t pn_data_get_ushort(pn_data_t *data) |
| 1933 | { |
no test coverage detected