libsignal-protocol-c  master
ProtobufCAllocator Struct Reference

#include <protobuf-c.h>

Public Attributes

void *(* alloc )(void *allocator_data, size_t size)
 
void(* free )(void *allocator_data, void *pointer)
 
void * allocator_data
 

Detailed Description

Structure for defining a custom memory allocator.

Member Data Documentation

◆ alloc

void*(* ProtobufCAllocator::alloc) (void *allocator_data, size_t size)

Function to allocate memory.

◆ allocator_data

void* ProtobufCAllocator::allocator_data

Opaque pointer passed to alloc and free functions.

◆ free

void(* ProtobufCAllocator::free) (void *allocator_data, void *pointer)

Function to free memory.


The documentation for this struct was generated from the following file: