| 149 | } |
| 150 | |
| 151 | void EncodeStream::writeUTF8String(const std::string& text) { |
| 152 | auto textLength = text.size(); |
| 153 | if (checkCapacity(textLength + 1)) { |
| 154 | memcpy(bytes + _position, text.c_str(), textLength + 1); |
| 155 | positionChanged(textLength + 1); |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | void EncodeStream::writeEncodedInt64(int64_t value) { |
| 160 | uint64_t flag = value < 0 ? 1 : 0; |
no test coverage detected