MCPcopy Create free account
hub / github.com/couchbase/fleece / reallocBytes

Method reallocBytes

API/fleece/slice.hh:722–727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

720 /** Like realloc but throws/terminates on failure. */
721 template <typename T>
722 RETURNS_NONNULL
723 inline T* pure_slice::reallocBytes(T* bytes, size_t newSz) {
724 T* newBytes = (T*)::realloc(bytes, newSz);
725 if (_usuallyFalse(!newBytes)) failBadAlloc();
726 return newBytes;
727 }
728
729 inline slice pure_slice::copy() const {
730 if (buf == nullptr)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected