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

Method pure_slice

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

std::string_view interoperability:

Source from the content-addressed store, hash-verified

189#ifdef SLICE_SUPPORTS_STRING_VIEW
190 // std::string_view interoperability:
191 constexpr pure_slice(string_view str) noexcept :pure_slice(str.data(), str.length()) {}
192 operator string_view() const noexcept STEPOVER {return string_view((const char*)buf, size);}
193#endif
194

Callers

nothing calls this directly

Calls 3

lengthMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected