| 633 | { |
| 634 | template<typename Stream> |
| 635 | void Unser(Stream& s, std::string& v) |
| 636 | { |
| 637 | size_t size = ReadCompactSize(s); |
| 638 | if (size > Limit) { |
| 639 | throw std::ios_base::failure("String length limit exceeded"); |
| 640 | } |
| 641 | v.resize(size); |
| 642 | if (size != 0) s.read(MakeWritableByteSpan(v)); |
| 643 | } |
| 644 | |
| 645 | template<typename Stream> |
| 646 | void Ser(Stream& s, const std::string& v) |
nothing calls this directly
no test coverage detected