- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for CanAddr (0.08 sec)
-
callbacks/update.go
for i := 0; i < stmt.ReflectValue.Len(); i++ { if stmt.ReflectValue.CanAddr() { field.Set(stmt.Context, stmt.ReflectValue.Index(i), value) } } } case reflect.Struct: assignValue = func(field *schema.Field, value interface{}) { if stmt.ReflectValue.CanAddr() { field.Set(stmt.Context, stmt.ReflectValue, value) } } default:
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Mon Mar 18 05:44:55 UTC 2024 - 9.4K bytes - Viewed (0) -
src/encoding/gob/encgen.go
package gob import ( "reflect" ) ` const arrayHelper = ` func enc%[2]sArray(state *encoderState, v reflect.Value) bool { // Can only slice if it is addressable. if !v.CanAddr() { return false } return enc%[2]sSlice(state, v.Slice(0, v.Len())) } ` const sliceHelper = ` func enc%[2]sSlice(state *encoderState, v reflect.Value) bool { slice, ok := v.Interface().([]%[1]s)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 16:39:09 UTC 2024 - 3.8K bytes - Viewed (0) -
src/encoding/gob/decgen.go
import ( "math" "reflect" ) ` const arrayHelper = ` func dec%[2]sArray(state *decoderState, v reflect.Value, length int, ovfl error) bool { // Can only slice if it is addressable. if !v.CanAddr() { return false } return dec%[2]sSlice(state, v.Slice(0, v.Len()), length, ovfl) } ` const sliceHelper = ` func dec%[2]sSlice(state *decoderState, v reflect.Value, length int, ovfl error) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 14:15:38 UTC 2024 - 5.3K bytes - Viewed (0) -
callbacks.go
} } // assign stmt.ReflectValue if stmt.Dest != nil { stmt.ReflectValue = reflect.ValueOf(stmt.Dest) for stmt.ReflectValue.Kind() == reflect.Ptr { if stmt.ReflectValue.IsNil() && stmt.ReflectValue.CanAddr() { stmt.ReflectValue.Set(reflect.New(stmt.ReflectValue.Type().Elem())) } stmt.ReflectValue = stmt.ReflectValue.Elem() } if !stmt.ReflectValue.IsValid() { db.AddError(ErrInvalidValue) }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Tue Mar 26 03:33:36 UTC 2024 - 8.6K bytes - Viewed (0)