| 75 | |
| 76 | template <typename T, typename P> |
| 77 | void DeserializeFromFuzzingInput(FuzzBufferType buffer, T&& obj, const P& params) |
| 78 | { |
| 79 | try { |
| 80 | SpanReader{buffer} >> params(obj); |
| 81 | } catch (const std::ios_base::failure&) { |
| 82 | throw invalid_fuzzing_input_exception(); |
| 83 | } |
| 84 | assert(buffer.empty() || !Serialize(obj, params).empty()); |
| 85 | } |
| 86 | |
| 87 | template <typename T> |
| 88 | DataStream Serialize(const T& obj) |
no test coverage detected