MCPcopy
hub / github.com/tailscale/tailscale / arrayIndex

Method arrayIndex

util/deephash/pointer.go:59–61  ·  view source on GitHub ↗

arrayIndex returns a pointer to an element in the array. p must point to an array.

(index int, size uintptr)

Source from the content-addressed store, hash-verified

57// arrayIndex returns a pointer to an element in the array.
58// p must point to an array.
59func (p unsafePointer) arrayIndex(index int, size uintptr) unsafePointer {
60 return unsafePointer{unsafe.Add(p.p, uintptr(index)*size)}
61}
62
63// structField returns a pointer to a field in a struct.
64// p must pointer to a struct.

Callers

nothing calls this directly

Calls 1

AddMethod · 0.65

Tested by

no test coverage detected