MCPcopy Create free account
hub / github.com/bytedance/sonic-cpp / SimpleChunkPolicy

Method SimpleChunkPolicy

include/sonic/allocator.h:138–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136class SimpleChunkPolicy {
137 public:
138 SimpleChunkPolicy(size_t chunk_cap = SONIC_ALLOCATOR_MAX_CHUNK_CAPACITY)
139 : min_chunk_size_(chunk_cap) {}
140
141 inline size_t ChunkSize(size_t need_alloc_size) {
142 return min_chunk_size_ > need_alloc_size ? min_chunk_size_

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected