| 140 | } |
| 141 | |
| 142 | void EncodeStream::writeByteData(const pag::ByteData* byteData) { |
| 143 | if (byteData == nullptr) { |
| 144 | return; |
| 145 | } |
| 146 | auto length = static_cast<uint32_t>(byteData->length()); |
| 147 | writeEncodedUint32(length); |
| 148 | writeBytes(byteData->data(), length); |
| 149 | } |
| 150 | |
| 151 | void EncodeStream::writeUTF8String(const std::string& text) { |
| 152 | auto textLength = text.size(); |
no test coverage detected