struct AllocationPolicy

Defined at line 23 of file ../../third_party/protobuf/src/google/protobuf/arena_allocation_policy.h

`AllocationPolicy` defines `Arena` allocation policies. Applications can

customize the initial and maximum sizes for arena allocation, as well as set

custom allocation and deallocation functions. `AllocationPolicy` is for

protocol buffer internal use only, and typically created from a user facing

public configuration class such as `ArenaOptions`.

Public Members

size_t start_block_size
size_t max_block_size
void *(*)(size_t) block_alloc
void (*)(void *, size_t) block_dealloc
static const size_t kDefaultStartBlockSize
static const size_t kDefaultMaxBlockSize

Public Methods

bool IsDefault ()

Defined at line 33 of file ../../third_party/protobuf/src/google/protobuf/arena_allocation_policy.h