MCPcopy
hub / github.com/uber/aresdb / MemDist

Function MemDist

utils/memory.go:25–27  ·  view source on GitHub ↗

MemDist returns the distance between two unsafe pointer.

(p1 unsafe.Pointer, p2 unsafe.Pointer)

Source from the content-addressed store, hash-verified

23
24// MemDist returns the distance between two unsafe pointer.
25func MemDist(p1 unsafe.Pointer, p2 unsafe.Pointer) int64 {
26 return int64(uintptr(p1) - uintptr(p2))
27}
28
29// MemEqual performs byte to byte comparison.
30func MemEqual(a unsafe.Pointer, b unsafe.Pointer, bytes int) bool {

Callers 4

makeVectorPartySliceFunction · 0.92
makeScratchSpaceInputFunction · 0.92
makeScratchSpaceOutputFunction · 0.92
memory_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected