| 42 | namespace codec { |
| 43 | |
| 44 | void encoder::check(long result) { |
| 45 | if (result < 0) |
| 46 | throw conversion_error(error_str(pn_data_error(pn_object()), result)); |
| 47 | } |
| 48 | |
| 49 | |
| 50 | encoder::encoder(internal::value_base& v) : data(v.data()) { |
nothing calls this directly
no test coverage detected