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

Function pointerDiff

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

Subtracts the 2nd pointer from the 1st, returning the difference in addresses. */

Source from the content-addressed store, hash-verified

82
83 /** Subtracts the 2nd pointer from the 1st, returning the difference in addresses. */
84 constexpr inline ptrdiff_t pointerDiff(const void *bigger, const void *smaller) noexcept {
85 return (uint8_t*)bigger - (uint8_t*)smaller;
86 }
87
88
89#pragma mark - PURE_SLICE:

Callers 8

setEndMethod · 0.85
mutable_sliceMethod · 0.85
validAddressMethod · 0.85
containsAddressMethod · 0.85
offsetOfMethod · 0.85
sliceMethod · 0.85
setStartMethod · 0.85
appendMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected