reflect.StructField.Offset (field)
4 uses
reflect (current package)
type.go#L1100: Offset uintptr // offset within struct, in bytes
type.go#L1200: f.Offset = p.offset()
github.com/google/go-cmp/cmp
export_unsafe.go#L23: ve := reflect.NewAt(f.Type, unsafe.Pointer(uintptr(unsafe.Pointer(v.UnsafeAddr()))+f.Offset)).Elem()
google.golang.org/protobuf/internal/impl
pointer_unsafe.go#L26: return offset(f.Offset)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |