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

Method offset

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

Source from the content-addressed store, hash-verified

554
555
556 inline const void* pure_slice::offset(size_t o) const noexcept {
557 return (uint8_t*)buf + check(o);
558 }
559
560 inline size_t pure_slice::offsetOf(const void* ptr NONNULL) const noexcept {
561 return pointerDiff(check(ptr), buf);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected