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

Class SharedData

include/sonic/allocator.h:186–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184 };
185
186 struct SharedData {
187 ChunkHeader* chunkHead; //!< Head of the chunk linked-list. Only the head
188 //!< chunk serves allocation.
189 BaseAllocator*
190 ownBaseAllocator; //!< base allocator created by this object.
191 size_t refcount;
192 bool ownBuffer;
193 };
194
195 static const size_t SIZEOF_SHARED_DATA = SONIC_ALIGN(sizeof(SharedData));
196 static const size_t SIZEOF_CHUNK_HEADER = SONIC_ALIGN(sizeof(ChunkHeader));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected