Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 159 for const2 (0.46 sec)

  1. src/syscall/syscall_windows.go

    import (
    	errorspkg "errors"
    	"internal/asan"
    	"internal/bytealg"
    	"internal/itoa"
    	"internal/msan"
    	"internal/oserror"
    	"internal/race"
    	"runtime"
    	"sync"
    	"unsafe"
    )
    
    type Handle uintptr
    
    const InvalidHandle = ^Handle(0)
    
    // StringToUTF16 returns the UTF-16 encoding of the UTF-8 string s,
    // with a terminating NUL added. If s contains a NUL byte this
    // function panics instead of returning an error.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  2. src/strings/strings_test.go

    			}
    		}
    	}
    
    	const maxInt = int(^uint(0) >> 1)
    
    	runTestCases("", []testCase{
    		0: {"--", -2147483647, "negative"},
    		1: {"", maxInt, ""},
    		2: {"-", 10, ""},
    		3: {"gopher", 0, ""},
    		4: {"-", -1, "negative"},
    		5: {"--", -102, "negative"},
    		6: {string(make([]byte, 255)), int((^uint(0))/255 + 1), "overflow"},
    	})
    
    	const is64Bit = 1<<(^uintptr(0)>>63)/2 != 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  3. src/time/time.go

    	// determine the minute, hour, month, day, and year
    	// that correspond to this Time.
    	// The nil location means UTC.
    	// All UTC times are represented with loc==nil, never loc==&utcLoc.
    	loc *Location
    }
    
    const (
    	hasMonotonic = 1 << 63
    	maxWall      = wallToInternal + (1<<33 - 1) // year 2157
    	minWall      = wallToInternal               // year 1885
    	nsecMask     = 1<<30 - 1
    	nsecShift    = 30
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness_test.go

    	clocktesting "k8s.io/utils/clock/testing"
    	"k8s.io/utils/ptr"
    
    	"github.com/google/go-cmp/cmp"
    )
    
    func TestMain(m *testing.M) {
    	klog.InitFlags(nil)
    	os.Exit(m.Run())
    }
    
    type mockDecision int
    
    const (
    	decisionNoQueuingExecute mockDecision = iota
    	decisionQueuingExecute
    	decisionCancelWait
    	decisionReject
    	decisionSkipFilter
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  5. src/go/parser/parser.go

    	p.next()
    }
    
    // ----------------------------------------------------------------------------
    // Parsing support
    
    func (p *parser) printTrace(a ...any) {
    	const dots = ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "
    	const n = len(dots)
    	pos := p.file.Position(p.pos)
    	fmt.Printf("%5d:%3d: ", pos.Line, pos.Column)
    	i := 2 * p.indent
    	for i > n {
    		fmt.Print(dots)
    		i -= n
    	}
    	// i <= n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  6. src/crypto/tls/handshake_client_test.go

    // print when a handshake completes if run with “-state”.
    const opensslEndOfHandshake = "SSL_accept:SSLv3/TLS write finished"
    
    // opensslReadKeyUpdate is a message that the “openssl s_server” tool will
    // print when a KeyUpdate message is received if run with “-state”.
    const opensslReadKeyUpdate = "SSL_accept:TLSv1.3 read client key update"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux.go

    }
    
    func Futimes(fd int, tv []Timeval) (err error) {
    	// Believe it or not, this is the best we can do on Linux
    	// (and is what glibc does).
    	return Utimes("/proc/self/fd/"+strconv.Itoa(fd), tv)
    }
    
    const ImplementsGetwd = true
    
    //sys	Getcwd(buf []byte) (n int, err error)
    
    func Getwd() (wd string, err error) {
    	var buf [PathMax]byte
    	n, err := Getcwd(buf[0:])
    	if err != nil {
    		return "", err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 77.5K bytes
    - Viewed (0)
  8. tests/migrate_test.go

    		}
    	}
    }
    
    func TestTableType(t *testing.T) {
    	// currently it is only supported for mysql driver
    	if !isMysql() {
    		return
    	}
    
    	const tblName = "cities"
    	const tblSchema = "gorm"
    	const tblType = "BASE TABLE"
    	const tblComment = "foobar comment"
    
    	type City struct {
    		gorm.Model
    		Name string `gorm:"unique"`
    	}
    
    	DB.Migrator().DropTable(&City{})
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Mar 18 11:24:16 UTC 2024
    - 56.2K bytes
    - Viewed (0)
  9. cmd/iam.go

    // Types of users configured in the server.
    const (
    	// This mode uses the internal users system in MinIO.
    	MinIOUsersSysType UsersSysType = "MinIOUsersSys"
    
    	// This mode uses users and groups from a configured LDAP
    	// server.
    	LDAPUsersSysType UsersSysType = "LDAPUsersSys"
    )
    
    const (
    	statusEnabled  = "enabled"
    	statusDisabled = "disabled"
    )
    
    const (
    	embeddedPolicyType  = "embedded-policy"
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  10. src/crypto/tls/tls_test.go

    	if err != nil {
    		panic(err)
    	}
    	rootCAs := x509.NewCertPool()
    	rootCAs.AddCert(issuer)
    
    	now := func() time.Time { return time.Unix(1476984729, 0) }
    
    	const alpnProtocol = "golang"
    	const serverName = "example.golang"
    	var scts = [][]byte{[]byte("dummy sct 1"), []byte("dummy sct 2")}
    	var ocsp = []byte("dummy ocsp")
    
    	for _, v := range []uint16{VersionTLS12, VersionTLS13} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
Back to top