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

Method reset

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

Releases and clears; same as assigning `nullslice`.

Source from the content-addressed store, hash-verified

373
374 /// Releases and clears; same as assigning `nullslice`.
375 void reset() noexcept {release(); assignFrom(nullslice);}
376 /// Resets to an uninitialized block of the given size.
377 void reset(size_t sz) {*this = alloc_slice(sz);}
378 /// Changes the size of the block by re-allocating. This changes `buf`!

Callers

nothing calls this directly

Calls 2

alloc_sliceFunction · 0.70
releaseFunction · 0.50

Tested by

no test coverage detected