MCPcopy Create free account
hub / github.com/couchbase/fleece / operator new

Method operator new

Fleece/API_Impl/FLSlice.cc:116–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 uint8_t _buf[4];
115
116 static inline void* operator new(size_t basicSize, size_t bufferSize) noexcept {
117 return malloc(basicSize - sizeof(sharedBuffer::_buf) + bufferSize);
118 }
119
120 static inline void operator delete(void *self) {
121 assert_precondition(isHeapAligned(self));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected