fn flush(w: *Writer) Writer.Error!void
fn flush(w: *Writer) Writer.Error!void { const c: *Client = @alignCast(@fieldParentPtr("writer", w)); const output = c.output; const ciphertext_buf = try output.writableSliceGreedy(min_buffer_len); const prepared = prepareCiphertextRecord(c, ciphertext_buf, w.buffered(), .application_data); output.advance(prepared.ciphertext_end); w.end = 0; }