func unsafe.Add
18 uses
unsafe (current package)
unsafe.go#L227: func Add(ptr Pointer, len IntegerType) Pointer
github.com/klauspost/compress/internal/le
unsafe_enabled.go#L15: return *(*byte)(unsafe.Add(unsafe.Pointer(unsafe.SliceData(b)), i))
unsafe_enabled.go#L22: return *(*uint16)(unsafe.Add(unsafe.Pointer(unsafe.SliceData(b)), i))
unsafe_enabled.go#L29: return *(*uint32)(unsafe.Add(unsafe.Pointer(unsafe.SliceData(b)), i))
unsafe_enabled.go#L36: return *(*uint64)(unsafe.Add(unsafe.Pointer(unsafe.SliceData(b)), i))
unsafe_enabled.go#L51: *(*uint64)(unsafe.Add(unsafe.Pointer(unsafe.SliceData(b)), i)) = v
internal/runtime/gc/scan
scan_go.go#L37: val := *(*uintptr)(unsafe.Add(mem, wordI*goarch.PtrSize))
scan_go.go#L81: *(*T)(unsafe.Add(unsafe.Pointer(b.base), b.n*int(unsafe.Sizeof(val)))) = val
scan_reference.go#L32: ptr := *(*uintptr)(unsafe.Add(mem, word*goarch.PtrSize))
internal/runtime/maps
group.go#L131: return *(*ctrl)(unsafe.Add(unsafe.Pointer(g), 7-i))
group.go#L133: return *(*ctrl)(unsafe.Add(unsafe.Pointer(g), i))
group.go#L139: *(*ctrl)(unsafe.Add(unsafe.Pointer(g), 7-i)) = c
group.go#L142: *(*ctrl)(unsafe.Add(unsafe.Pointer(g), i)) = c
reflect
type.go#L1205: p = unsafe.Add(p, 4)
runtime
list.go#L58: return (*listNode)(unsafe.Add(p, head.nodeOffset))
list_manual.go#L65: return (*listNodeManual)(unsafe.Add(p, head.nodeOffset))
malloc.go#L1181: asanpoison(unsafe.Add(x, size-asanRZ), asanRZ)
mgcmark_greenteagc.go#L753: return (*objptr)(unsafe.Add(unsafe.Pointer(r.ring), idx*unsafe.Sizeof(objptr(0))))
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |