- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for unsafe_New (0.53 sec)
-
src/reflect/swapper.go
return func(i, j int) { is[i], is[j] = is[j], is[i] } case 1: is := *(*[]int8)(v.ptr) return func(i, j int) { is[i], is[j] = is[j], is[i] } } } s := (*unsafeheader.Slice)(v.ptr) tmp := unsafe_New(typ) // swap scratch space return func(i, j int) { if uint(i) >= uint(s.Len) || uint(j) >= uint(s.Len) { panic("reflect: slice index out of range") } val1 := arrayAt(s.Data, i, size, "i < s.Len")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:30 UTC 2024 - 2K bytes - Viewed (0) -
src/internal/reflectlite/swapper.go
return func(i, j int) { is[i], is[j] = is[j], is[i] } case 1: is := *(*[]int8)(v.ptr) return func(i, j int) { is[i], is[j] = is[j], is[i] } } } s := (*unsafeheader.Slice)(v.ptr) tmp := unsafe_New(typ) // swap scratch space return func(i, j int) { if uint(i) >= uint(s.Len) || uint(j) >= uint(s.Len) { panic("reflect: slice index out of range") } val1 := arrayAt(s.Data, i, size, "i < s.Len")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:30 UTC 2024 - 2K bytes - Viewed (0) -
src/internal/reflectlite/export_test.go
func Zero(typ Type) Value { if typ == nil { panic("reflect: Zero(nil)") } t := typ.common() fl := flag(t.Kind()) if t.IfaceIndir() { return Value{t, unsafe_New(t), fl | flagIndir} } return Value{t, nil, fl} } // ToInterface returns v's current value as an interface{}. // It is equivalent to: // // var i interface{} = (v's underlying value) //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:01:54 UTC 2024 - 3K bytes - Viewed (0)