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

Method validAddress

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

Source from the content-addressed store, hash-verified

521
522
523 inline bool pure_slice::validAddress(const void *addr) const noexcept {
524 // Note: unsigned comparison handles case when addr < buf
525 return size_t(pointerDiff(addr, buf)) <= size;
526 }
527
528
529 inline bool pure_slice::containsAddress(const void *addr) const noexcept {

Callers

nothing calls this directly

Calls 1

pointerDiffFunction · 0.85

Tested by

no test coverage detected