MCPcopy
hub / github.com/tailscale/tailscale / structField

Method structField

util/deephash/pointer.go:65–67  ·  view source on GitHub ↗

structField returns a pointer to a field in a struct. p must pointer to a struct.

(index int, offset, size uintptr)

Source from the content-addressed store, hash-verified

63// structField returns a pointer to a field in a struct.
64// p must pointer to a struct.
65func (p unsafePointer) structField(index int, offset, size uintptr) unsafePointer {
66 return unsafePointer{unsafe.Add(p.p, offset)}
67}
68
69// asString casts p as a *string.
70func (p unsafePointer) asString() *string {

Callers

nothing calls this directly

Calls 1

AddMethod · 0.65

Tested by

no test coverage detected