| 166 | } |
| 167 | |
| 168 | static void append_scratch(h2_c1_io *io) |
| 169 | { |
| 170 | if (io->scratch && io->slen > 0) { |
| 171 | apr_bucket *b = apr_bucket_heap_create(io->scratch, io->slen, |
| 172 | apr_bucket_free, |
| 173 | io->session->c1->bucket_alloc); |
| 174 | APR_BRIGADE_INSERT_TAIL(io->output, b); |
| 175 | io->buffered_len += io->slen; |
| 176 | io->scratch = NULL; |
| 177 | io->slen = io->ssize = 0; |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | static apr_size_t assure_scratch_space(h2_c1_io *io) { |
| 182 | apr_size_t remain = io->ssize - io->slen; |
no outgoing calls
no test coverage detected