Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 144 for swiftc (0.07 sec)

  1. src/log/slog/value.go

    }
    
    // Unexported version of Kind, just so we can store Kinds in Values.
    // (No user-provided value has this type.)
    type kind Kind
    
    // Kind returns v's Kind.
    func (v Value) Kind() Kind {
    	switch x := v.any.(type) {
    	case Kind:
    		return x
    	case stringptr:
    		return KindString
    	case timeLocation, timeTime:
    		return KindTime
    	case groupptr:
    		return KindGroup
    	case LogValuer:
    		return KindLogValuer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/lifecycle.go

    			// - expected time to action is the same for both actions
    			if now.After(a.Due) && now.After(b.Due) || a.Due.Equal(b.Due) {
    				switch a.Action {
    				case DeleteAllVersionsAction, DelMarkerDeleteAllVersionsAction,
    					DeleteAction, DeleteVersionAction:
    					return -1
    				}
    				switch b.Action {
    				case DeleteAllVersionsAction, DelMarkerDeleteAllVersionsAction,
    					DeleteAction, DeleteVersionAction:
    					return 1
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. src/cmd/trace/main.go

    	telemetry.CountFlags("trace/flag:", *flag.CommandLine)
    
    	// Go 1.7 traces embed symbol info and does not require the binary.
    	// But we optionally accept binary as first arg for Go 1.5 traces.
    	switch flag.NArg() {
    	case 1:
    		traceFile = flag.Arg(0)
    	case 2:
    		programBinary = flag.Arg(0)
    		traceFile = flag.Arg(1)
    	default:
    		flag.Usage()
    	}
    
    	tracef, err := os.Open(traceFile)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. src/syscall/js/js.go

    func (v Value) Type() Type {
    	switch v.ref {
    	case valueUndefined.ref:
    		return TypeUndefined
    	case valueNull.ref:
    		return TypeNull
    	case valueTrue.ref, valueFalse.ref:
    		return TypeBoolean
    	}
    	if v.isNumber() {
    		return TypeNumber
    	}
    	typeFlag := (v.ref >> 32) & 7
    	switch typeFlag {
    	case typeFlagObject:
    		return TypeObject
    	case typeFlagString:
    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/operand.go

    		expr = ExprString(x.expr)
    	} else {
    		switch x.mode {
    		case builtin:
    			expr = predeclaredFuncs[x.id].name
    		case typexpr:
    			expr = TypeString(x.typ, qf)
    		case constant_:
    			expr = x.val.String()
    		}
    	}
    
    	// <expr> (
    	if expr != "" {
    		buf.WriteString(expr)
    		buf.WriteString(" (")
    	}
    
    	// <untyped kind>
    	hasType := false
    	switch x.mode {
    	case invalid, novalue, builtin, typexpr:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. pkg/config/validation/agent/validation.go

    	appendError := func(err, err2 error) error {
    		if err == nil {
    			return err2
    		} else if err2 == nil {
    			return err
    		}
    		return multierror.Append(err, err2)
    	}
    
    	for _, nv := range vs {
    		switch t := nv.(type) {
    		case Validation:
    			v.Err = appendError(v.Err, t.Err)
    			v.Warning = appendError(v.Warning, t.Warning)
    		default:
    			v.Err = appendError(v.Err, t)
    		}
    	}
    	return v
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  7. scan.go

    		initialized         = mode&ScanInitialized != 0
    		update              = mode&ScanUpdate != 0
    		onConflictDonothing = mode&ScanOnConflictDoNothing != 0
    	)
    
    	db.RowsAffected = 0
    
    	switch dest := db.Statement.Dest.(type) {
    	case map[string]interface{}, *map[string]interface{}:
    		if initialized || rows.Next() {
    			columnTypes, _ := rows.ColumnTypes()
    			prepareValues(values, db, columnTypes, columns)
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10K bytes
    - Viewed (0)
  8. src/crypto/tls/boring_test.go

    func isBoringCipherSuite(id uint16) bool {
    	switch id {
    	case TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
    		TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
    		TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
    		TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
    		TLS_RSA_WITH_AES_128_GCM_SHA256,
    		TLS_RSA_WITH_AES_256_GCM_SHA384:
    		return true
    	}
    	return false
    }
    
    func isBoringCurve(id CurveID) bool {
    	switch id {
    	case CurveP256, CurveP384, CurveP521:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:45:37 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  9. src/compress/flate/deflate.go

    func (d *compressor) encSpeed() {
    	// We only compress if we have maxStoreBlockSize.
    	if d.windowEnd < maxStoreBlockSize {
    		if !d.sync {
    			return
    		}
    
    		// Handle small sizes.
    		if d.windowEnd < 128 {
    			switch {
    			case d.windowEnd == 0:
    				return
    			case d.windowEnd <= 16:
    				d.err = d.writeStoredBlock(d.window[:d.windowEnd])
    			default:
    				d.w.writeBlockHuff(false, d.window[:d.windowEnd])
    				d.err = d.w.err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  10. src/internal/reflectlite/value.go

    // packEface converts v to the empty interface.
    func packEface(v Value) any {
    	t := v.typ()
    	var i any
    	e := (*abi.EmptyInterface)(unsafe.Pointer(&i))
    	// First, fill in the data portion of the interface.
    	switch {
    	case t.IfaceIndir():
    		if v.flag&flagIndir == 0 {
    			panic("bad indir")
    		}
    		// Value is indirect, and so is the interface we're making.
    		ptr := v.ptr
    		if v.flag&flagAddr != 0 {
    			c := unsafe_New(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top