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

Method toCString

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

Source from the content-addressed store, hash-verified

590
591
592 inline bool pure_slice::toCString(char *str, size_t bufSize) const noexcept {
593 size_t n = std::min(size, bufSize-1);
594 FLMemCpy(str, buf, n);
595 str[n] = 0;
596 return n == size;
597 }
598
599
600 inline std::string pure_slice::hexString() const {

Callers

nothing calls this directly

Calls 1

FLMemCpyFunction · 0.85

Tested by

no test coverage detected