- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ptrType (0.34 sec)
-
src/reflect/value.go
} } ptr = *(*unsafe.Pointer)(ptr) } // The returned value's address is v's value. if ptr == nil { return Value{} } tt := (*ptrType)(unsafe.Pointer(v.typ())) typ := tt.Elem fl := v.flag&flagRO | flagIndir | flagAddr fl |= flag(typ.Kind()) return Value{typ, ptr, fl} } panic(&ValueError{"reflect.Value.Elem", v.kind()}) }
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 = v.Elem() v = v.Field(0) v.SetInt(2) if p.X != 2 { t.Errorf("Addr.Elem.Set failed to set value") } // Again but take address of the ValueOf value. // Exercises generation of PtrTypes not present in the binary. q := &p v = ValueOf(&q).Elem() v = v.Addr() v = v.Elem() v = v.Elem() v = v.Addr() v = v.Elem() v = v.Field(0) v.SetInt(3) if p.X != 3 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0)