MCPcopy
hub / github.com/etcd-io/bbolt / UnsafeAdd

Function UnsafeAdd

internal/common/unsafe.go:7–9  ·  view source on GitHub ↗
(base unsafe.Pointer, offset uintptr)

Source from the content-addressed store, hash-verified

5)
6
7func UnsafeAdd(base unsafe.Pointer, offset uintptr) unsafe.Pointer {
8 return unsafe.Pointer(uintptr(base) + offset)
9}
10
11func UnsafeIndex(base unsafe.Pointer, offset uintptr, elemsz uintptr, n int) unsafe.Pointer {
12 return unsafe.Pointer(uintptr(base) + offset + uintptr(n)*elemsz)

Callers 6

WriteMethod · 0.92
MetaMethod · 0.85
LeafPageElementsMethod · 0.85
BranchPageElementsMethod · 0.85
FreelistPageCountMethod · 0.85
UnsafeByteSliceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected