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

Method hasSuffix

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

Source from the content-addressed store, hash-verified

162 inline bool hasSuffix(pure_slice) const noexcept FLPURE;
163 bool hasPrefix(uint8_t b) const noexcept FLPURE {return size > 0 && (*this)[0] == b;}
164 bool hasSuffix(uint8_t b) const noexcept FLPURE {return size > 0 && (*this)[size-1] == b;}
165
166 /** Computes a 32-bit non-cryptographic hash of the slice's contents. */
167 uint32_t hash() const noexcept FLPURE {return FLSlice_Hash(*this);}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected