| 57 | } |
| 58 | |
| 59 | void decoder::decode(const char* i, size_t size) { |
| 60 | internal::state_guard sg(*this); |
| 61 | const char* end = i + size; |
| 62 | while (i < end) |
| 63 | i += check(pn_data_decode(pn_object(), i, size_t(end - i))); |
| 64 | } |
| 65 | |
| 66 | void decoder::decode(const std::string& s) { decode(s.data(), s.size()); } |
| 67 |