"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.11.23/lib/isc/include/isc/bufferlist.h" (7 Sep 2020, 1451 Bytes) of package /linux/misc/dns/bind9/9.11.23/bind-9.11.23.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "bufferlist.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
    3  *
    4  * This Source Code Form is subject to the terms of the Mozilla Public
    5  * License, v. 2.0. If a copy of the MPL was not distributed with this
    6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
    7  *
    8  * See the COPYRIGHT file distributed with this work for additional
    9  * information regarding copyright ownership.
   10  */
   11 
   12 
   13 #ifndef ISC_BUFFERLIST_H
   14 #define ISC_BUFFERLIST_H 1
   15 
   16 /*****
   17  ***** Module Info
   18  *****/
   19 
   20 /*! \file isc/bufferlist.h
   21  *
   22  *
   23  *\brief    Buffer lists have no synchronization.  Clients must ensure exclusive
   24  *  access.
   25  *
   26  * \li Reliability:
   27  *  No anticipated impact.
   28 
   29  * \li Security:
   30  *  No anticipated impact.
   31  *
   32  * \li Standards:
   33  *  None.
   34  */
   35 
   36 /***
   37  *** Imports
   38  ***/
   39 
   40 #include <isc/lang.h>
   41 #include <isc/types.h>
   42 
   43 ISC_LANG_BEGINDECLS
   44 
   45 /***
   46  *** Functions
   47  ***/
   48 
   49 unsigned int
   50 isc_bufferlist_usedcount(isc_bufferlist_t *bl);
   51 /*!<
   52  * \brief Return the length of the sum of all used regions of all buffers in
   53  * the buffer list 'bl'
   54  *
   55  * Requires:
   56  *
   57  *\li   'bl' is not NULL.
   58  *
   59  * Returns:
   60  *\li   sum of all used regions' lengths.
   61  */
   62 
   63 unsigned int
   64 isc_bufferlist_availablecount(isc_bufferlist_t *bl);
   65 /*!<
   66  * \brief Return the length of the sum of all available regions of all buffers in
   67  * the buffer list 'bl'
   68  *
   69  * Requires:
   70  *
   71  *\li   'bl' is not NULL.
   72  *
   73  * Returns:
   74  *\li   sum of all available regions' lengths.
   75  */
   76 
   77 ISC_LANG_ENDDECLS
   78 
   79 #endif /* ISC_BUFFERLIST_H */