\hypertarget{structevbuffer__chain}{\section{evbuffer\+\_\+chain Struct Reference}
\label{structevbuffer__chain}\index{evbuffer\+\_\+chain@{evbuffer\+\_\+chain}}
}


A single item in an evbuffer.  




{\ttfamily \#include $<$evbuffer-\/internal.\+h$>$}

\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structevbuffer__chain_a302eea17a6aacc55c33f119ad788ddb5}{struct \hyperlink{structevbuffer__chain}{evbuffer\+\_\+chain} $\ast$ \hyperlink{structevbuffer__chain_a302eea17a6aacc55c33f119ad788ddb5}{next}}\label{structevbuffer__chain_a302eea17a6aacc55c33f119ad788ddb5}

\begin{DoxyCompactList}\small\item\em points to next buffer in the chain \end{DoxyCompactList}\item 
size\+\_\+t \hyperlink{structevbuffer__chain_a584b2b319d71fad5848c5f3a1a971c11}{buffer\+\_\+len}
\begin{DoxyCompactList}\small\item\em total allocation available in the buffer field. \end{DoxyCompactList}\item 
ev\+\_\+off\+\_\+t \hyperlink{structevbuffer__chain_aec40d4b3303a6afef7e172c44e638798}{misalign}
\begin{DoxyCompactList}\small\item\em unused space at the beginning of buffer or an offset into a file for sendfile buffers. \end{DoxyCompactList}\item 
size\+\_\+t \hyperlink{structevbuffer__chain_a974dfb5dd49914c64eb413ddac81fc26}{off}
\begin{DoxyCompactList}\small\item\em Offset into buffer + misalign at which to start writing. \end{DoxyCompactList}\item 
\hypertarget{structevbuffer__chain_a5f5fd17d81d5c58ccb4113857115130f}{unsigned \hyperlink{structevbuffer__chain_a5f5fd17d81d5c58ccb4113857115130f}{flags}}\label{structevbuffer__chain_a5f5fd17d81d5c58ccb4113857115130f}

\begin{DoxyCompactList}\small\item\em Set if special handling is required for this chain. \end{DoxyCompactList}\item 
unsigned char $\ast$ \hyperlink{structevbuffer__chain_a9374df4f7d07f1e4580c617da0b38ec7}{buffer}
\begin{DoxyCompactList}\small\item\em Usually points to the read-\/write memory belonging to this buffer allocated as part of the \hyperlink{structevbuffer__chain}{evbuffer\+\_\+chain} allocation. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
A single item in an evbuffer. 



\subsection{Field Documentation}
\hypertarget{structevbuffer__chain_a9374df4f7d07f1e4580c617da0b38ec7}{\index{evbuffer\+\_\+chain@{evbuffer\+\_\+chain}!buffer@{buffer}}
\index{buffer@{buffer}!evbuffer\+\_\+chain@{evbuffer\+\_\+chain}}
\subsubsection[{buffer}]{\setlength{\rightskip}{0pt plus 5cm}unsigned char$\ast$ evbuffer\+\_\+chain\+::buffer}}\label{structevbuffer__chain_a9374df4f7d07f1e4580c617da0b38ec7}


Usually points to the read-\/write memory belonging to this buffer allocated as part of the \hyperlink{structevbuffer__chain}{evbuffer\+\_\+chain} allocation. 

For mmap, this can be a read-\/only buffer and E\+V\+B\+U\+F\+F\+E\+R\+\_\+\+I\+M\+M\+U\+T\+A\+B\+L\+E will be set in flags. For sendfile, it may point to N\+U\+L\+L. 

Referenced by evbuffer\+\_\+add(), evbuffer\+\_\+add\+\_\+file(), evbuffer\+\_\+add\+\_\+reference(), evbuffer\+\_\+add\+\_\+vprintf(), evbuffer\+\_\+copyout(), evbuffer\+\_\+peek(), evbuffer\+\_\+prepend(), evbuffer\+\_\+pullup(), evbuffer\+\_\+read(), evbuffer\+\_\+remove\+\_\+buffer(), and evbuffer\+\_\+search\+\_\+range().

\hypertarget{structevbuffer__chain_a584b2b319d71fad5848c5f3a1a971c11}{\index{evbuffer\+\_\+chain@{evbuffer\+\_\+chain}!buffer\+\_\+len@{buffer\+\_\+len}}
\index{buffer\+\_\+len@{buffer\+\_\+len}!evbuffer\+\_\+chain@{evbuffer\+\_\+chain}}
\subsubsection[{buffer\+\_\+len}]{\setlength{\rightskip}{0pt plus 5cm}size\+\_\+t evbuffer\+\_\+chain\+::buffer\+\_\+len}}\label{structevbuffer__chain_a584b2b319d71fad5848c5f3a1a971c11}


total allocation available in the buffer field. 



Referenced by evbuffer\+\_\+add(), evbuffer\+\_\+add\+\_\+file(), evbuffer\+\_\+add\+\_\+reference(), evbuffer\+\_\+add\+\_\+vprintf(), evbuffer\+\_\+prepend(), and evbuffer\+\_\+pullup().

\hypertarget{structevbuffer__chain_aec40d4b3303a6afef7e172c44e638798}{\index{evbuffer\+\_\+chain@{evbuffer\+\_\+chain}!misalign@{misalign}}
\index{misalign@{misalign}!evbuffer\+\_\+chain@{evbuffer\+\_\+chain}}
\subsubsection[{misalign}]{\setlength{\rightskip}{0pt plus 5cm}ev\+\_\+off\+\_\+t evbuffer\+\_\+chain\+::misalign}}\label{structevbuffer__chain_aec40d4b3303a6afef7e172c44e638798}


unused space at the beginning of buffer or an offset into a file for sendfile buffers. 



Referenced by evbuffer\+\_\+add(), evbuffer\+\_\+add\+\_\+file(), evbuffer\+\_\+add\+\_\+vprintf(), evbuffer\+\_\+copyout(), evbuffer\+\_\+drain(), evbuffer\+\_\+peek(), evbuffer\+\_\+prepend(), evbuffer\+\_\+pullup(), evbuffer\+\_\+read(), evbuffer\+\_\+remove\+\_\+buffer(), and evbuffer\+\_\+search\+\_\+range().

\hypertarget{structevbuffer__chain_a974dfb5dd49914c64eb413ddac81fc26}{\index{evbuffer\+\_\+chain@{evbuffer\+\_\+chain}!off@{off}}
\index{off@{off}!evbuffer\+\_\+chain@{evbuffer\+\_\+chain}}
\subsubsection[{off}]{\setlength{\rightskip}{0pt plus 5cm}size\+\_\+t evbuffer\+\_\+chain\+::off}}\label{structevbuffer__chain_a974dfb5dd49914c64eb413ddac81fc26}


Offset into buffer + misalign at which to start writing. 

In other words, the total number of bytes actually stored in buffer. 

Referenced by evbuffer\+\_\+add(), evbuffer\+\_\+add\+\_\+file(), evbuffer\+\_\+add\+\_\+reference(), evbuffer\+\_\+add\+\_\+vprintf(), evbuffer\+\_\+commit\+\_\+space(), evbuffer\+\_\+copyout(), evbuffer\+\_\+drain(), evbuffer\+\_\+get\+\_\+contiguous\+\_\+space(), evbuffer\+\_\+peek(), evbuffer\+\_\+prepend(), evbuffer\+\_\+ptr\+\_\+set(), evbuffer\+\_\+pullup(), evbuffer\+\_\+read(), evbuffer\+\_\+remove\+\_\+buffer(), and evbuffer\+\_\+search\+\_\+range().



The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
opal/mca/event/libevent2013/libevent/evbuffer-\/internal.\+h\end{DoxyCompactItemize}
