Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 377 for asSlice (0.1 sec)

  1. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/helpers.go

    // Returns false if the value is missing.
    // No error is returned for a nil field.
    //
    // Note: fields passed to this function are treated as keys within the passed
    // object; no array/slice syntax is supported.
    func NestedFieldCopy(obj map[string]interface{}, fields ...string) (interface{}, bool, error) {
    	val, found, err := NestedFieldNoCopy(obj, fields...)
    	if !found || err != nil {
    		return nil, found, err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 20:39:55 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/order.go

    		[]ir.Node{ir.NewAssignOpStmt(base.Pos, ir.OADD, counter, ir.NewInt(base.Pos, 1))}))
    }
    
    // orderBlock orders the block of statements in n into a new slice,
    // and then replaces the old slice in n with the new slice.
    // free is a map that can be used to obtain temporary variables by type.
    func orderBlock(n *ir.Nodes, free map[string][]*ir.Name) {
    	if len(*n) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  3. operator/pkg/compare/compare.go

    		log.Error(err.Error())
    	}
    }
    
    // IsLeafNode reports whether the given node is a leaf, assuming internal nodes can only be maps or slices.
    func IsLeafNode(node any) bool {
    	return !util.IsMap(node) && !util.IsSlice(node)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 01:29:35 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. src/syscall/js/js.go

    	return string(b)
    }
    
    //go:wasmimport gojs syscall/js.valuePrepareString
    func valuePrepareString(v ref) (ref, int)
    
    // valueLoadString loads string data located at ref v into byte slice b.
    //
    // (noescape): This is safe because the byte slice is only used as a destination
    //             for storing the string data and references to it are not maintained.
    //
    //go:wasmimport gojs syscall/js.valueLoadString
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  5. src/go/types/signature.go

    		n := params.Len()
    		if n == 0 {
    			panic("variadic function must have at least one parameter")
    		}
    		core := coreString(params.At(n - 1).typ)
    		if _, ok := core.(*Slice); !ok && !isString(core) {
    			panic(fmt.Sprintf("got %s, want variadic parameter with unnamed slice type or string as core type", core.String()))
    		}
    	}
    	sig := &Signature{recv: recv, params: params, results: results, variadic: variadic}
    	if len(recvTypeParams) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. src/unicode/letter.go

    )
    
    // RangeTable defines a set of Unicode code points by listing the ranges of
    // code points within the set. The ranges are listed in two slices
    // to save space: a slice of 16-bit ranges and a slice of 32-bit ranges.
    // The two slices must be in sorted order and non-overlapping.
    // Also, R32 should contain only values >= 0x10000 (1<<16).
    type RangeTable struct {
    	R16         []Range16
    	R32         []Range32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 20:02:46 UTC 2023
    - 10K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/switch.go

    		base.Fatalf("unable to split string set")
    	}
    
    	// Convert expr to a []int8
    	slice := ir.NewConvExpr(base.Pos, ir.OSTR2BYTESTMP, types.NewSlice(types.Types[types.TINT8]), expr)
    	slice.SetTypecheck(1) // legacy typechecker doesn't handle this op
    	slice.MarkNonNil()
    	// Load the byte we're splitting on.
    	load := ir.NewIndexExpr(base.Pos, slice, ir.NewInt(base.Pos, int64(bestIdx)))
    	// Compare with the value we're splitting on.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  8. tests/preload_test.go

    	for _, user := range users {
    		userIDs = append(userIDs, user.ID)
    	}
    
    	var users2 []User
    	DB.Preload("Account", clause.Eq{Column: "number", Value: users[0].Account.Number}).Find(&users2, "id IN ?", userIDs)
    	sort.Slice(users2, func(i, j int) bool {
    		return users2[i].ID < users2[j].ID
    	})
    
    	for idx, user := range users2[1:2] {
    		if user.Account.Number != "" {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:00:47 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/text/unicode/norm/iter.go

    	i.info = i.rb.f.info(i.rb.src, i.p)
    	i.rb.ss.first(i.info)
    	return abs, nil
    }
    
    // returnSlice returns a slice of the underlying input type as a byte slice.
    // If the underlying is of type []byte, it will simply return a slice.
    // If the underlying is of type string, it will copy the slice to the buffer
    // and return that.
    func (i *Iter) returnSlice(a, b int) []byte {
    	if i.rb.src.bytes == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 11K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/merge_control_flow.cc

      first_if_then_block.getOperations().splice(
          first_if_then_block.without_terminator().end(), second_if_then_body,
          second_if_then_body.begin(), std::prev(second_if_then_body.end()));
    
      Block& first_if_else_block = first_if.getElseBranch().front();
      auto& second_if_else_body = second_if.getElseBranch().front().getOperations();
      first_if_else_block.getOperations().splice(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 25.9K bytes
    - Viewed (0)
Back to top