\hypertarget{struct_protobuf_c_allocator}{}\section{Protobuf\+C\+Allocator Struct Reference}
\label{struct_protobuf_c_allocator}\index{Protobuf\+C\+Allocator@{Protobuf\+C\+Allocator}}


{\ttfamily \#include $<$protobuf-\/c.\+h$>$}

\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
void $\ast$($\ast$ \hyperlink{struct_protobuf_c_allocator_a17b54e3bc1113d5ec14b5925f4f83c60}{alloc} )(void $\ast$\hyperlink{struct_protobuf_c_allocator_a546c5f8cb7192032d47881c1837ac91d}{allocator\+\_\+data}, size\+\_\+t size)
\item 
void($\ast$ \hyperlink{struct_protobuf_c_allocator_aa1e3abd09974963bd177018521b8eda3}{free} )(void $\ast$\hyperlink{struct_protobuf_c_allocator_a546c5f8cb7192032d47881c1837ac91d}{allocator\+\_\+data}, void $\ast$pointer)
\item 
void $\ast$ \hyperlink{struct_protobuf_c_allocator_a546c5f8cb7192032d47881c1837ac91d}{allocator\+\_\+data}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Structure for defining a custom memory allocator. 

Definition at line 375 of file protobuf-\/c.\+h.



\subsection{Field Documentation}
\mbox{\Hypertarget{struct_protobuf_c_allocator_a17b54e3bc1113d5ec14b5925f4f83c60}\label{struct_protobuf_c_allocator_a17b54e3bc1113d5ec14b5925f4f83c60}} 
\index{Protobuf\+C\+Allocator@{Protobuf\+C\+Allocator}!alloc@{alloc}}
\index{alloc@{alloc}!Protobuf\+C\+Allocator@{Protobuf\+C\+Allocator}}
\subsubsection{\texorpdfstring{alloc}{alloc}}
{\footnotesize\ttfamily void$\ast$($\ast$ alloc) (void $\ast$\hyperlink{struct_protobuf_c_allocator_a546c5f8cb7192032d47881c1837ac91d}{allocator\+\_\+data}, size\+\_\+t size)}

Function to allocate memory. 

Definition at line 377 of file protobuf-\/c.\+h.

\mbox{\Hypertarget{struct_protobuf_c_allocator_a546c5f8cb7192032d47881c1837ac91d}\label{struct_protobuf_c_allocator_a546c5f8cb7192032d47881c1837ac91d}} 
\index{Protobuf\+C\+Allocator@{Protobuf\+C\+Allocator}!allocator\+\_\+data@{allocator\+\_\+data}}
\index{allocator\+\_\+data@{allocator\+\_\+data}!Protobuf\+C\+Allocator@{Protobuf\+C\+Allocator}}
\subsubsection{\texorpdfstring{allocator\+\_\+data}{allocator\_data}}
{\footnotesize\ttfamily void$\ast$ allocator\+\_\+data}

Opaque pointer passed to {\ttfamily alloc} and {\ttfamily free} functions. 

Definition at line 383 of file protobuf-\/c.\+h.

\mbox{\Hypertarget{struct_protobuf_c_allocator_aa1e3abd09974963bd177018521b8eda3}\label{struct_protobuf_c_allocator_aa1e3abd09974963bd177018521b8eda3}} 
\index{Protobuf\+C\+Allocator@{Protobuf\+C\+Allocator}!free@{free}}
\index{free@{free}!Protobuf\+C\+Allocator@{Protobuf\+C\+Allocator}}
\subsubsection{\texorpdfstring{free}{free}}
{\footnotesize\ttfamily void($\ast$ free) (void $\ast$\hyperlink{struct_protobuf_c_allocator_a546c5f8cb7192032d47881c1837ac91d}{allocator\+\_\+data}, void $\ast$pointer)}

Function to free memory. 

Definition at line 380 of file protobuf-\/c.\+h.



The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
src/protobuf-\/c/\hyperlink{protobuf-c_8h}{protobuf-\/c.\+h}\end{DoxyCompactItemize}
