- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for methodValueCallCodePtr (0.25 sec)
-
src/reflect/value.go
// created via reflect have the same underlying code pointer, // so their Pointers are equal. The function used here must // match the one used in makeMethodValue. return methodValueCallCodePtr() } p := v.pointer() // Non-nil func value points at data block. // First word of data block is actual code. if p != nil { p = *(*unsafe.Pointer)(p) } return uintptr(p)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:17:41 UTC 2024 - 119.9K bytes - Viewed (0) -
src/reflect/all_test.go
v.SetIterValue(iter) }) } } func TestMethodCallValueCodePtr(t *testing.T) { m := ValueOf(Point{}).Method(1) want := MethodValueCallCodePtr() if got := uintptr(m.UnsafePointer()); got != want { t.Errorf("methodValueCall code pointer mismatched, want: %v, got: %v", want, got) } if got := m.Pointer(); got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0)