Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for slicelit (0.16 sec)

  1. 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)
  2. pkg/controller/endpointslice/endpointslice_controller_test.go

    	expectActions(t, client.Actions(), 1, "create", "endpointslices")
    
    	sliceList, err := client.DiscoveryV1().EndpointSlices(ns).List(context.TODO(), metav1.ListOptions{})
    	assert.Nil(t, err, "Expected no error fetching endpoint slices")
    	assert.Len(t, sliceList.Items, 1, "Expected 1 endpoint slices")
    	slice := sliceList.Items[0]
    	assert.Regexp(t, "^"+serviceName, slice.Name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/cmd/compile/internal/ssa/_gen/generic.rules

    // a more comprehensive set.
    (SliceLen (SliceMake _ (Const64 <t> [c]) _)) => (Const64 <t> [c])
    (SliceCap (SliceMake _ _ (Const64 <t> [c]))) => (Const64 <t> [c])
    (SliceLen (SliceMake _ (Const32 <t> [c]) _)) => (Const32 <t> [c])
    (SliceCap (SliceMake _ _ (Const32 <t> [c]))) => (Const32 <t> [c])
    (SlicePtr (SliceMake (SlicePtr x) _ _)) => (SlicePtr x)
    (SliceLen (SliceMake _ (SliceLen x) _)) => (SliceLen x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	// Slices
    	{name: "SliceMake", argLength: 3},                // arg0=ptr, arg1=len, arg2=cap
    	{name: "SlicePtr", argLength: 1, typ: "BytePtr"}, // ptr(arg0)
    	{name: "SliceLen", argLength: 1},                 // len(arg0)
    	{name: "SliceCap", argLength: 1},                 // cap(arg0)
    	// SlicePtrUnchecked, like SlicePtr, extracts the pointer from a slice.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/compile/internal/ssa/rewritegeneric.go

    		c := auxIntToInt32(v_0_1.AuxInt)
    		v.reset(OpConst32)
    		v.Type = t
    		v.AuxInt = int32ToAuxInt(c)
    		return true
    	}
    	// match: (SliceLen (SliceMake _ (SliceLen x) _))
    	// result: (SliceLen x)
    	for {
    		if v_0.Op != OpSliceMake {
    			break
    		}
    		_ = v_0.Args[1]
    		v_0_1 := v_0.Args[1]
    		if v_0_1.Op != OpSliceLen {
    			break
    		}
    		x := v_0_1.Args[0]
    		v.reset(OpSliceLen)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
Back to top