| 162 | } |
| 163 | |
| 164 | void UnsafePutByteArray(const void* data, uint32_t length) { |
| 165 | DCHECK(length == 0 || data != nullptr) << "Value ptr cannot be NULL"; |
| 166 | sink_.UnsafeAppend(&length, sizeof(uint32_t)); |
| 167 | sink_.UnsafeAppend(data, static_cast<int64_t>(length)); |
| 168 | unencoded_byte_array_data_bytes_ += length; |
| 169 | } |
| 170 | |
| 171 | void Put(const ByteArray& val) { |
| 172 | // Write the result to the output stream |
nothing calls this directly
no test coverage detected