* hb_list_bytes ********************************************************************** * Assuming all items are of type hb_buffer_t, returns the total * number of bytes in the list *********************************************************************/
| 4236 | * number of bytes in the list |
| 4237 | *********************************************************************/ |
| 4238 | int hb_list_bytes( hb_list_t * l ) |
| 4239 | { |
| 4240 | hb_buffer_t * buf; |
| 4241 | int ret; |
| 4242 | int i; |
| 4243 | |
| 4244 | ret = 0; |
| 4245 | for( i = 0; i < hb_list_count( l ); i++ ) |
| 4246 | { |
| 4247 | buf = hb_list_item( l, i ); |
| 4248 | ret += buf->size - buf->offset; |
| 4249 | } |
| 4250 | |
| 4251 | return ret; |
| 4252 | } |
| 4253 | |
| 4254 | /********************************************************************** |
| 4255 | * hb_list_seebytes |
no test coverage detected