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

Method operator new

Fleece/Mutable/HeapValue.cc:26–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25
26 void* HeapValue::operator new(size_t size, size_t valueSize) {
27#ifdef __GNUC__
28#pragma GCC diagnostic push
29#pragma GCC diagnostic ignored "-Winvalid-offsetof"
30#endif
31 static_assert(offsetof(HeapValue, _header) & 1, "_header must be at odd address");
32#ifdef __GNUC__
33#pragma GCC diagnostic pop
34#endif
35 return ::operator new(size + valueSize);
36 }
37
38
39 HeapValue::HeapValue(tags tag, int tiny) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected