Public Member Functions | Public Attributes | Static Public Attributes | List of all members
google::protobuf.internal::AllocationPolicy Struct Reference

#include <arena_impl.h>

Public Member Functions

bool IsDefault () const
 

Public Attributes

void *(* block_alloc )(size_t) = nullptr
 
void(* block_dealloc )(void *, size_t) = nullptr
 
size_t max_block_size = kDefaultMaxBlockSize
 
ArenaMetricsCollectormetrics_collector = nullptr
 
size_t start_block_size = kDefaultStartBlockSize
 

Static Public Attributes

static constexpr size_t kDefaultMaxBlockSize = 8192
 
static constexpr size_t kDefaultStartBlockSize = 256
 

Detailed Description

Definition at line 94 of file protobuf/src/google/protobuf/arena_impl.h.

Member Function Documentation

◆ IsDefault()

bool google::protobuf.internal::AllocationPolicy::IsDefault ( ) const
inline

Definition at line 104 of file protobuf/src/google/protobuf/arena_impl.h.

Member Data Documentation

◆ block_alloc

void*(* google::protobuf.internal::AllocationPolicy::block_alloc) (size_t) = nullptr

Definition at line 100 of file protobuf/src/google/protobuf/arena_impl.h.

◆ block_dealloc

void(* google::protobuf.internal::AllocationPolicy::block_dealloc) (void *, size_t) = nullptr

Definition at line 101 of file protobuf/src/google/protobuf/arena_impl.h.

◆ kDefaultMaxBlockSize

constexpr size_t google::protobuf.internal::AllocationPolicy::kDefaultMaxBlockSize = 8192
staticconstexpr

Definition at line 96 of file protobuf/src/google/protobuf/arena_impl.h.

◆ kDefaultStartBlockSize

constexpr size_t google::protobuf.internal::AllocationPolicy::kDefaultStartBlockSize = 256
staticconstexpr

Definition at line 95 of file protobuf/src/google/protobuf/arena_impl.h.

◆ max_block_size

size_t google::protobuf.internal::AllocationPolicy::max_block_size = kDefaultMaxBlockSize

Definition at line 99 of file protobuf/src/google/protobuf/arena_impl.h.

◆ metrics_collector

ArenaMetricsCollector* google::protobuf.internal::AllocationPolicy::metrics_collector = nullptr

Definition at line 102 of file protobuf/src/google/protobuf/arena_impl.h.

◆ start_block_size

size_t google::protobuf.internal::AllocationPolicy::start_block_size = kDefaultStartBlockSize

Definition at line 98 of file protobuf/src/google/protobuf/arena_impl.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:25