- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for SliceAt (0.26 sec)
-
doc/next/6-stdlib/99-minor/reflect/61308.md
The [SliceAt(typ Type, p unsafe.Pointer, len int)] function returns a Value representing a slice whose underlying array starts
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 20:57:18 UTC 2024 - 170 bytes - Viewed (0) -
api/go1.23.txt
pkg os, func CopyFS(string, fs.FS) error #62484 pkg path/filepath, func Localize(string) (string, error) #57151 pkg reflect, func SliceAt(Type, unsafe.Pointer, int) Value #61308 pkg reflect, method (Value) Seq() iter.Seq[Value] #66056 pkg reflect, method (Value) Seq2() iter.Seq2[Value, Value] #66056 pkg reflect, type Type interface, CanSeq() bool #66056
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 05 20:48:49 UTC 2024 - 8.4K bytes - Viewed (0) -
src/reflect/all_test.go
} typ = TypeOf(0) if !SliceAt(typ, unsafe.Pointer((*int)(nil)), 0).IsNil() { t.Fatal("nil pointer with zero length must return nil") } // nil pointer with positive length panics shouldPanic("", func() { _ = SliceAt(typ, unsafe.Pointer((*int)(nil)), 1) }) // negative length var neg int = -1 shouldPanic("", func() { _ = SliceAt(TypeOf(byte(0)), unsafe.Pointer(&p[0]), neg) })
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
return Value{&typ.(*rtype).t, unsafe.Pointer(&s), flagIndir | flag(Slice)} } // SliceAt returns a [Value] representing a slice whose underlying // data starts at p, with length and capacity equal to n. // // This is like [unsafe.Slice]. func SliceAt(typ Type, p unsafe.Pointer, n int) Value { unsafeslice(typ.common(), p, n) s := unsafeheader.Slice{Data: p, Len: n, Cap: n}
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/encoding/gob/type.go
const unknown = "unknown type" if w == nil { return unknown } switch { case w.ArrayT != nil: return w.ArrayT.Name case w.SliceT != nil: return w.SliceT.Name case w.StructT != nil: return w.StructT.Name case w.MapT != nil: return w.MapT.Name case w.GobEncoderT != nil: return w.GobEncoderT.Name case w.BinaryMarshalerT != nil: return w.BinaryMarshalerT.Name
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 02:00:26 UTC 2024 - 27.2K bytes - Viewed (0) -
src/encoding/gob/doc.go
pair (-type id, encoded-type) where encoded-type is the gob encoding of a wireType description, constructed from these types: type wireType struct { ArrayT *ArrayType SliceT *SliceType StructT *StructType MapT *MapType GobEncoderT *gobEncoderType BinaryMarshalerT *gobEncoderType TextMarshalerT *gobEncoderType }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:22:45 UTC 2024 - 17.1K bytes - Viewed (0)