| 881 | } |
| 882 | |
| 883 | void EncodeStr(std::vector<char>* stream, std::string const& string) { |
| 884 | stream->push_back('L'); |
| 885 | |
| 886 | int64_t bsize = string.size(); |
| 887 | WritePrimitive(bsize, stream); |
| 888 | |
| 889 | auto s = stream->size(); |
| 890 | stream->resize(s + string.size()); |
| 891 | |
| 892 | auto ptr = stream->data() + s; |
| 893 | std::memcpy(ptr, string.data(), string.size()); |
| 894 | } |
| 895 | } // anonymous namespace |
| 896 | |
| 897 | void UBJWriter::Visit(JsonArray const* arr) { |
no test coverage detected