| 551 | { |
| 552 | template<typename Stream> |
| 553 | void Unser(Stream& s, std::string& v) |
| 554 | { |
| 555 | size_t size = ReadCompactSize(s); |
| 556 | if (size > Limit) { |
| 557 | throw std::ios_base::failure("String length limit exceeded"); |
| 558 | } |
| 559 | v.resize(size); |
| 560 | if (size != 0) s.read(MakeWritableByteSpan(v)); |
| 561 | } |
| 562 | |
| 563 | template<typename Stream> |
| 564 | void Ser(Stream& s, const std::string& v) |
nothing calls this directly
no test coverage detected