Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,308 for _Append (0.47 sec)

  1. src/go/types/builtins.go

    			return
    		}
    	}
    
    	switch id {
    	case _Append:
    		// append(s S, x ...T) S, where T is the element type of S
    		// spec: "The variadic function append appends zero or more values x to s of type
    		// S, which must be a slice type, and returns the resulting slice, also of type S.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/builtins.go

    			return
    		}
    	}
    
    	switch id {
    	case _Append:
    		// append(s S, x ...T) S, where T is the element type of S
    		// spec: "The variadic function append appends zero or more values x to s of type
    		// S, which must be a slice type, and returns the resulting slice, also of type S.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/assign.go

    	clrfn := mkcall(clrname, nil, &clr, hp, hn)
    	clr.Append(clrfn)
    	if hasPointers {
    		// growslice will have cleared the new entries, so only
    		// if growslice isn't called do we need to do the zeroing ourselves.
    		nif.Body = append(nif.Body, clr...)
    	} else {
    		nifnz.Body = append(nifnz.Body, clr...)
    	}
    
    	typecheck.Stmts(nodes)
    	walkStmtList(nodes)
    	init.Append(nodes...)
    	return s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  4. src/cmd/go/internal/work/gc.go

    		defaultGcFlags = append(defaultGcFlags, "-dwarf=false")
    	}
    	if strings.HasPrefix(ToolchainVersion, "go1") && !strings.Contains(os.Args[0], "go_bootstrap") {
    		defaultGcFlags = append(defaultGcFlags, "-goversion", ToolchainVersion)
    	}
    	if p.Internal.Cover.Cfg != "" {
    		defaultGcFlags = append(defaultGcFlags, "-coveragecfg="+p.Internal.Cover.Cfg)
    	}
    	if pgoProfile != "" {
    		defaultGcFlags = append(defaultGcFlags, "-pgoprofile="+pgoProfile)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:37:44 UTC 2024
    - 23K bytes
    - Viewed (0)
  5. src/os/file_plan9.go

    		create bool
    		excl   bool
    		trunc  bool
    		append bool
    	)
    
    	if flag&O_CREATE == O_CREATE {
    		flag = flag & ^O_CREATE
    		create = true
    	}
    	if flag&O_EXCL == O_EXCL {
    		excl = true
    	}
    	if flag&O_TRUNC == O_TRUNC {
    		trunc = true
    	}
    	// O_APPEND is emulated on Plan 9
    	if flag&O_APPEND == O_APPEND {
    		flag = flag &^ O_APPEND
    		append = true
    	}
    
    	if (create && trunc) || excl {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:35:30 UTC 2024
    - 16K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/order.go

    		ir.DumpList(s, fn.Body)
    	}
    	ir.SetPos(fn) // Set reasonable position for instrumenting code. See issue 53688.
    	orderBlock(&fn.Body, map[string][]*ir.Name{})
    }
    
    // append typechecks stmt and appends it to out.
    func (o *orderState) append(stmt ir.Node) {
    	o.out = append(o.out, typecheck.Stmt(stmt))
    }
    
    // newTemp allocates a new temporary with the given type,
    // pushes it onto the temp stack, and returns it.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  7. pkg/test/framework/suite.go

    					minorVersion, ver.String()))
    			}
    		}
    		return nil
    	}
    
    	s.requireFns = append(s.requireFns, fn)
    	return s
    }
    
    func (s *suiteImpl) Setup(fn resource.SetupFn) Suite {
    	s.setupFns = append(s.setupFns, fn)
    	return s
    }
    
    func (s *suiteImpl) Teardown(fn resource.TeardownFn) Suite {
    	s.teardownFns = append(s.teardownFns, fn)
    	return s
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/func.go

    		if ir.IsNil(args[0]) {
    			base.Errorf("first argument to append must be typed slice; have untyped nil")
    			n.SetType(nil)
    			return n
    		}
    
    		base.Errorf("first argument to append must be slice; have %L", t)
    		n.SetType(nil)
    		return n
    	}
    
    	if n.IsDDD {
    		if len(args) == 1 {
    			base.Errorf("cannot use ... on first argument to append")
    			n.SetType(nil)
    			return n
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  9. src/crypto/tls/handshake_test.go

    		return
    	}
    	b = b[:n]
    
    	r.Lock()
    	defer r.Unlock()
    
    	if l := len(r.flows); l == 0 || !r.reading {
    		buf := make([]byte, len(b))
    		copy(buf, b)
    		r.flows = append(r.flows, buf)
    	} else {
    		r.flows[l-1] = append(r.flows[l-1], b[:n]...)
    	}
    	r.reading = true
    	return
    }
    
    func (r *recordingConn) Write(b []byte) (n int, err error) {
    	if n, err = r.Conn.Write(b); n == 0 {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  10. pkg/test/framework/components/echo/kube/deployment.go

    			if port.Protocol == protocol.GRPC {
    				grpcPorts = append(grpcPorts, port)
    			} else {
    				otherPorts = append(otherPorts, port)
    			}
    		}
    		otherPorts = append(otherPorts, &echoCommon.Port{
    			Name:     "grpc-fallback",
    			Protocol: protocol.GRPC,
    			Port:     grpcFallbackPort,
    		})
    		appContainers[0]["ContainerPorts"] = otherPorts
    		appContainers = append(appContainers, map[string]any{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 12:26:52 UTC 2024
    - 24.1K bytes
    - Viewed (0)
Back to top