line |
true |
false |
branch |
20
|
0 |
322 |
if (!buffer) { |
25
|
0 |
322 |
if (!buffer->_data) { |
49
|
0 |
127 |
if(!buffer->_data) { |
68
|
0 |
231 |
if (!data) { |
83
|
1 |
768 |
if (buffer->_capacity < buffer->_position + amount) { |
86
|
0 |
1 |
if (new_capacity < buffer->_position + amount) { |
89
|
0 |
1 |
if (!ldns_buffer_set_capacity(buffer, new_capacity)) { |
105
|
1227 |
0 |
if (ldns_buffer_status_ok(buffer)) { |
114
|
0 |
1227 |
if (written == -1) { |
117
|
1 |
1226 |
} else if ((size_t) written >= remaining) { |
118
|
0 |
1 |
if (!ldns_buffer_reserve(buffer, (size_t) written + 1)) { |
126
|
0 |
1 |
if (written == -1) { |
139
|
0 |
449 |
if (!buffer) { |
143
|
216 |
233 |
if (!buffer->_fixed) |
159
|
146 |
5525 |
if (!ldns_buffer_available_at(buffer, buffer->_position, sizeof(uint8_t))) { |
172
|
0 |
0 |
if(tocopy > ldns_buffer_capacity(result)) |