Bytes rec_write produces: the record exactly as rec_finalize returns it.
| 448 | |
| 449 | // Bytes rec_write produces: the record exactly as rec_finalize returns it. |
| 450 | static int rec_payload_len(const RecordBuilder *r) { |
| 451 | return rec_total_header(r) + r->body.len; |
| 452 | } |
| 453 | |
| 454 | // Write the record (header_len + header + body) at dst; returns its length. |
| 455 | static int rec_write(const RecordBuilder *r, uint8_t *dst) { |
no test coverage detected