| 206 | } |
| 207 | |
| 208 | void SawyerStreamWriter::writeChunk(SawyerEncoding chunkType, const void* data, size_t dataLen) |
| 209 | { |
| 210 | auto encodedData = encode(chunkType, std::span(static_cast<const std::byte*>(data), dataLen)); |
| 211 | write(&chunkType, sizeof(chunkType)); |
| 212 | write(static_cast<uint32_t>(encodedData.size())); |
| 213 | write(encodedData.data(), encodedData.size()); |
| 214 | } |
| 215 | |
| 216 | void SawyerStreamWriter::write(const void* data, size_t dataLen) |
| 217 | { |
no test coverage detected