Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,308 for Appendp (0.23 sec)

  1. src/cmd/internal/dwarf/dwarf.go

    	Logf(format string, args ...interface{})
    }
    
    // AppendUleb128 appends v to b using DWARF's unsigned LEB128 encoding.
    func AppendUleb128(b []byte, v uint64) []byte {
    	for {
    		c := uint8(v & 0x7f)
    		v >>= 7
    		if v != 0 {
    			c |= 0x80
    		}
    		b = append(b, c)
    		if c&0x80 == 0 {
    			break
    		}
    	}
    	return b
    }
    
    // AppendSleb128 appends v to b using DWARF's signed LEB128 encoding.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 43K bytes
    - Viewed (0)
  2. pkg/scheduler/testing/wrappers.go

    			Kind:       gvk.Kind,
    			Name:       name,
    			Controller: ptr.To(true),
    		},
    	}
    	return p
    }
    
    // Container appends a container into PodSpec of the inner pod.
    func (p *PodWrapper) Container(s string) *PodWrapper {
    	name := fmt.Sprintf("con%d", len(p.Spec.Containers))
    	p.Spec.Containers = append(p.Spec.Containers, MakeContainer().Name(name).Image(s).Obj())
    	return p
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/mod/modfile/read.go

    			in.lex()
    			if cb != nil {
    				in.file.Stmt = append(in.file.Stmt, cb)
    				cb = nil
    			}
    		case _COMMENT:
    			tok := in.lex()
    			if cb == nil {
    				cb = &CommentBlock{Start: tok.pos}
    			}
    			com := cb.Comment()
    			com.Before = append(com.Before, Comment{Start: tok.pos, Token: tok.text})
    		case _EOF:
    			if cb != nil {
    				in.file.Stmt = append(in.file.Stmt, cb)
    			}
    			return
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  4. src/regexp/regexp.go

    		if !ok {
    			break
    		}
    		dst = append(dst, before...)
    		template = after
    		if template != "" && template[0] == '$' {
    			// Treat $$ as $.
    			dst = append(dst, '$')
    			template = template[1:]
    			continue
    		}
    		name, num, rest, ok := extract(template)
    		if !ok {
    			// Malformed; treat $ as raw text.
    			dst = append(dst, '$')
    			continue
    		}
    		template = rest
    		if num >= 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  5. pkg/config/validation/agent/validation.go

    	var errs error
    	if ls.GetAddress() == "" {
    		errs = multierror.Append(errs, errors.New("address is required"))
    	}
    	if err := ValidateProxyAddress(ls.GetAddress()); err != nil {
    		errs = multierror.Append(errs, multierror.Prefix(err, "invalid lightstep address:"))
    	}
    	if ls.GetAccessToken() == "" {
    		errs = multierror.Append(errs, errors.New("access token is required"))
    	}
    	return errs
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/switch.go

    		}
    
    		if c.typ.Type().IsInterface() {
    			interfaceCases = append(interfaceCases, c)
    		} else {
    			concreteCases = append(concreteCases, c)
    		}
    	}
    	flush()
    
    	sw.Compiled.Append(defaultGoto) // if none of the cases matched
    
    	// Now generate all the case bodies
    	for i, ncase := range sw.Cases {
    		sw.Compiled.Append(ir.NewLabelStmt(ncase.Pos(), labels[i]))
    		if caseVar := ncase.Var; caseVar != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  7. 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)
  8. src/log/slog/value.go

    	// groups are immutable.
    	return len(v.group()) == 0
    }
    
    // append appends a text representation of v to dst.
    // v is formatted as with fmt.Sprint.
    func (v Value) append(dst []byte) []byte {
    	switch v.Kind() {
    	case KindString:
    		return append(dst, v.str()...)
    	case KindInt64:
    		return strconv.AppendInt(dst, int64(v.num), 10)
    	case KindUint64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/sccp.go

    					}
    					t.defUse[arg] = append(t.defUse[arg], val)
    				}
    			}
    		}
    		for _, ctl := range block.ControlValues() {
    			// for control values that can become constants, find their use blocks
    			if possibleConst(ctl) {
    				t.defBlock[ctl] = append(t.defBlock[ctl], block)
    			}
    		}
    	}
    }
    
    // addUses finds all uses of value and appends them into work list for further process
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:54:50 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/cfg/builder.go

    		Stmt:  stmt,
    	}
    	block.Succs = block.succs2[:0]
    	g.Blocks = append(g.Blocks, block)
    	return block
    }
    
    func (b *builder) add(n ast.Node) {
    	b.current.Nodes = append(b.current.Nodes, n)
    }
    
    // jump adds an edge from the current block to the target block,
    // and sets b.current to nil.
    func (b *builder) jump(target *Block) {
    	b.current.Succs = append(b.current.Succs, target)
    	b.current = nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top