Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for MaxInt64 (0.03 sec)

  1. schema/serializer_test.go

    	var (
    		intValue      = math.MaxInt64
    		int8Value     = int8(math.MaxInt8)
    		int16Value    = int16(math.MaxInt16)
    		int32Value    = int32(math.MaxInt32)
    		int64Value    = int64(math.MaxInt64)
    		uintValue     = uint(math.MaxInt64)
    		uint8Value    = uint8(math.MaxUint8)
    		uint16Value   = uint16(math.MaxUint16)
    		uint32Value   = uint32(math.MaxUint32)
    		uint64Value   = uint64(math.MaxInt64)
    		maxInt64Plus1 = uint64(math.MaxInt64 + 1)
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Oct 26 12:29:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  2. schema/serializer.go

    	rv := reflect.ValueOf(fieldValue)
    	switch fieldValue.(type) {
    	case int, int8, int16, int32, int64:
    		result = time.Unix(rv.Int(), 0).UTC()
    	case uint, uint8, uint16, uint32, uint64:
    		if uv := rv.Uint(); uv > math.MaxInt64 {
    			err = fmt.Errorf("integer overflow conversion uint64(%d) -> int64", uv)
    		} else {
    			result = time.Unix(int64(uv), 0).UTC() //nolint:gosec
    		}
    	case *int, *int8, *int16, *int32, *int64:
    		if rv.IsZero() {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Oct 26 12:29:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  3. utils/utils_test.go

    	tests := []struct {
    		name string
    		in   interface{}
    		out  string
    	}{
    		{"int", math.MaxInt64, "9223372036854775807"},
    		{"int8", int8(math.MaxInt8), "127"},
    		{"int16", int16(math.MaxInt16), "32767"},
    		{"int32", int32(math.MaxInt32), "2147483647"},
    		{"int64", int64(math.MaxInt64), "9223372036854775807"},
    		{"uint", uint(math.MaxUint64), "18446744073709551615"},
    		{"uint8", uint8(math.MaxUint8), "255"},
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Sep 19 01:49:06 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. cmd/dynamic-timeouts.go

    	dynamicTimeoutDecreaseThresholdPct = 0.10 // Lower threshold for failures in order to decrease timeout
    	dynamicTimeoutLogSize              = 16
    	maxDuration                        = math.MaxInt64
    	maxDynamicTimeout                  = 24 * time.Hour // Never set timeout bigger than this.
    )
    
    // timeouts that are dynamically adapted based on actual usage results
    type dynamicTimeout struct {
    	timeout       int64
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. internal/lsync/lrwmutex.go

    //
    // If the lock is already in use, the calling go routine
    // blocks until the mutex is available.
    func (lm *LRWMutex) Lock() {
    	const isWriteLock = true
    	lm.lockLoop(context.Background(), lm.id, lm.source, math.MaxInt64, isWriteLock)
    }
    
    // GetLock tries to get a write lock on lm before the timeout occurs.
    func (lm *LRWMutex) GetLock(ctx context.Context, id string, source string, timeout time.Duration) (locked bool) {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 4.8K bytes
    - Viewed (0)
Back to top