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

Function MemAccess

utils/memory.go:20–22  ·  view source on GitHub ↗

MemAccess access memory location with starting pointer and an offset.

(p unsafe.Pointer, offset int)

Source from the content-addressed store, hash-verified

18
19// MemAccess access memory location with starting pointer and an offset.
20func MemAccess(p unsafe.Pointer, offset int) unsafe.Pointer {
21 return unsafe.Pointer(uintptr(p) + uintptr(offset))
22}
23
24// MemDist returns the distance between two unsafe pointer.
25func MemDist(p1 unsafe.Pointer, p2 unsafe.Pointer) int64 {

Callers 15

LookupKeyMethod · 0.92
hashMethod · 0.92
getSignatureMethod · 0.92
getRecordIDMethod · 0.92
getEventTimeMethod · 0.92
getKeyMethod · 0.92
resizeMethod · 0.92
allocateMethod · 0.92
GetSliceBytesAlignedMethod · 0.92
SetAllValidMethod · 0.92
CheckAllValidMethod · 0.92
GetPrimaryKeyBytesFunction · 0.92

Calls

no outgoing calls

Tested by 1

byteToByteCopyFunction · 0.68