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

Method Shared

include/sonic/allocator.h:360–363  ·  view source on GitHub ↗

Whether the allocator is shared. ! \return true or false. */

Source from the content-addressed store, hash-verified

358 /*! \return true or false.
359 */
360 bool Shared() const noexcept {
361 sonic_assert(shared_->refcount > 0);
362 return shared_->refcount > 1;
363 }
364
365 //! Allocates a memory block. (concept Allocator)
366 void* Malloc(size_t size) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected