- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for IsSlice3 (0.11 sec)
-
src/reflect/all_test.go
} rv = ValueOf(&xa).Elem() shouldPanic("Slice3", func() { rv.Slice3(1, 2, 1) }) shouldPanic("Slice3", func() { rv.Slice3(1, 1, 11) }) shouldPanic("Slice3", func() { rv.Slice3(2, 2, 1) }) s := "hello world" rv = ValueOf(&s).Elem() shouldPanic("Slice3", func() { rv.Slice3(1, 2, 3) }) rv = ValueOf(&xs).Elem() rv = rv.Slice3(3, 5, 7) ptr2 := rv.UnsafePointer() rv = rv.Slice3(4, 4, 4)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0) -
src/reflect/value.go
fl := v.flag.ro() | flagIndir | flag(Slice) return Value{typ.Common(), unsafe.Pointer(&x), fl} } // Slice3 is the 3-index form of the slice operation: it returns v[i:j:k]. // It panics if v's Kind is not [Array] or [Slice], or if v is an unaddressable array, // or if the indexes are out of bounds. func (v Value) Slice3(i, j, k int) Value { var ( cap int typ *sliceType base unsafe.Pointer )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:17:41 UTC 2024 - 119.9K bytes - Viewed (0)