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

Class ChunkHeader

include/sonic/allocator.h:179–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177 /*! Chunks are stored as a singly linked list.
178 */
179 struct ChunkHeader {
180 size_t capacity; //!< Capacity of the chunk in bytes (excluding the header
181 //!< itself).
182 size_t size; //!< Current size of allocated memory in bytes.
183 ChunkHeader* next; //!< Next chunk in the linked list.
184 };
185
186 struct SharedData {
187 ChunkHeader* chunkHead; //!< Head of the chunk linked-list. Only the head

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected