Read a length-prefixed StringView from a ByteInputStream. Requires a `readStringView(stream, storage)` function in scope.
| 95 | /// Read a length-prefixed StringView from a ByteInputStream. |
| 96 | /// Requires a `readStringView(stream, storage)` function in scope. |
| 97 | inline StringView readVariantStringView( |
| 98 | ByteInputStream& stream, |
| 99 | std::string& storage) { |
| 100 | auto size = stream.read<int32_t>(); |
| 101 | storage.resize(size); |
| 102 | stream.readBytes(storage.data(), size); |
| 103 | return StringView(storage); |
| 104 | } |
| 105 | |
| 106 | /// Compare a serialized VARIANT value against a vector value. |
| 107 | inline std::optional<int32_t> compareVariantStreamVsVector( |
nothing calls this directly
no test coverage detected