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

Method hasSuffix

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

Source from the content-addressed store, hash-verified

700
701
702 inline bool pure_slice::hasSuffix(pure_slice s) const noexcept {
703 return s.size > 0 && size >= s.size
704 && ::memcmp(offsetby(buf, size - s.size), s.buf, s.size) == 0;
705 }
706
707
708#pragma mark MEMORY ALLOCATION

Callers

nothing calls this directly

Calls 1

offsetbyFunction · 0.85

Tested by

no test coverage detected