MCPcopy Create free account
hub / github.com/apache/httpd / calc_space_left

Function calc_space_left

modules/http2/h2_bucket_beam.c:181–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181static apr_size_t calc_space_left(h2_bucket_beam *beam)
182{
183 if (beam->max_buf_size > 0) {
184 apr_size_t len = calc_buffered(beam);
185 return (beam->max_buf_size > len? (beam->max_buf_size - len) : 0);
186 }
187 return APR_SIZE_MAX;
188}
189
190static int buffer_is_empty(h2_bucket_beam *beam)
191{

Callers 2

wait_not_fullFunction · 0.85
h2_beam_sendFunction · 0.85

Calls 1

calc_bufferedFunction · 0.85

Tested by

no test coverage detected