bufferlist.c File Reference

#include <config.h>
#include <stddef.h>
#include <isc/buffer.h>
#include <isc/bufferlist.h>
#include <isc/util.h>

Go to the source code of this file.

Functions

unsigned int isc_bufferlist_usedcount (isc_bufferlist_t *bl)
 Return the length of the sum of all used regions of all buffers in the buffer list 'bl'.
unsigned int isc_bufferlist_availablecount (isc_bufferlist_t *bl)
 Return the length of the sum of all available regions of all buffers in the buffer list 'bl'.


Detailed Description

Definition in file bufferlist.c.


Function Documentation

unsigned int isc_bufferlist_usedcount ( isc_bufferlist_t *  bl  ) 

Return the length of the sum of all used regions of all buffers in the buffer list 'bl'.

Requires:

Returns:

Definition at line 31 of file bufferlist.c.

References buffer, isc_buffer_usedlength, ISC_BUFFER_VALID, ISC_LIST_HEAD, ISC_LIST_NEXT, and REQUIRE.

unsigned int isc_bufferlist_availablecount ( isc_bufferlist_t *  bl  ) 

Return the length of the sum of all available regions of all buffers in the buffer list 'bl'.

Requires:

Returns:

Definition at line 49 of file bufferlist.c.

References buffer, isc_buffer_availablelength, ISC_BUFFER_VALID, ISC_LIST_HEAD, ISC_LIST_NEXT, and REQUIRE.


Generated on Tue Apr 28 17:41:14 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha