write chunk size at header offset
| 97 | |
| 98 | /// write chunk size at header offset |
| 99 | inline void write_chunk_size(WriteContext &ctx, size_t header_offset, |
| 100 | uint8_t size) { |
| 101 | // header_offset points to the header byte, size is at offset + 1 |
| 102 | ctx.buffer().unsafe_put_byte(header_offset + 1, size); |
| 103 | } |
| 104 | |
| 105 | /// Check if we need to write type info for a field type |
| 106 | /// Keep as constexpr for compile time evaluation or constant folding |
no test coverage detected