Server 0.0.1
HTTP/REST server implementation

src/cbuf/inc_read.c

Go to the documentation of this file.
00001 
00023 #include <sys/types.h>
00024 
00025 #include "cbuf.h"
00026 
00027 void
00028 cbufIncRead(Cbuf this, size_t n)
00029 {
00030         this->read  += n;
00031         this->read   = (this->read >= this->bsize)?
00032                 this->read - this->bsize : this->read;
00033         this->bused -= n;
00034 }
00035 
00036 // vim: set ts=4 sw=4:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines