Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for Integer (0.2 sec)

  1. src/archive/tar/strconv.go

    			if i == 0 {
    				c &= 0x7f // Ignore signal bit in first byte
    			}
    			if (x >> 56) > 0 {
    				p.err = ErrHeader // Integer overflow
    				return 0
    			}
    			x = x<<8 | uint64(c)
    		}
    		if (x >> 63) > 0 {
    			p.err = ErrHeader // Integer overflow
    			return 0
    		}
    		if inv == 0xff {
    			return ^int64(x)
    		}
    		return int64(x)
    	}
    
    	// Normal case is base-8 (octal) format.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/expiration.go

    	"time"
    )
    
    var (
    	errLifecycleInvalidDate         = Errorf("Date must be provided in ISO 8601 format")
    	errLifecycleInvalidDays         = Errorf("Days must be positive integer when used with Expiration")
    	errLifecycleInvalidExpiration   = Errorf("Exactly one of Days (positive integer) or Date (positive ISO 8601 format) should be present inside Expiration.")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Feb 21 20:28:34 GMT 2024
    - 6.6K bytes
    - Viewed (1)
  3. internal/disk/stat_windows.go

    	lpTotalNumberOfFreeBytes := int64(0)
    
    	// Extract values safely
    	// BOOL WINAPI GetDiskFreeSpaceEx(
    	// _In_opt_  LPCTSTR         lpDirectoryName,
    	// _Out_opt_ PULARGE_INTEGER lpFreeBytesAvailable,
    	// _Out_opt_ PULARGE_INTEGER lpTotalNumberOfBytes,
    	// _Out_opt_ PULARGE_INTEGER lpTotalNumberOfFreeBytes
    	// );
    	_, _, _ = GetDiskFreeSpaceEx.Call(uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(path))),
    		uintptr(unsafe.Pointer(&lpFreeBytesAvailable)),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  4. misc/cgo/gmp/gmp.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    /*
    An example of wrapping a C library in Go. This is the GNU
    multiprecision library gmp's integer type mpz_t wrapped to look like
    the Go package big's integer type Int.
    
    This is a syntactically valid Go program—it can be parsed with the Go
    parser and processed by godoc—but it is not compiled directly by gc.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 9.5K bytes
    - Viewed (0)
  5. cmd/handler-api.go

    	}
    	limit, err = strconv.ParseUint(strings.TrimSpace(string(buf)), 10, 64)
    	if err != nil {
    		// The kernel can return valid but non integer values
    		// but still, no need to interpret more
    		return 0
    	}
    	if limit == cgroupMemNoLimit {
    		// No limit set, It's the highest positive signed 64-bit
    		// integer (2^63-1), rounded down to multiples of 4096 (2^12),
    		// the most common page size on x86 systems - for cgroup_limits.
    		return 0
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 08 09:22:27 GMT 2024
    - 10K bytes
    - Viewed (0)
  6. src/archive/tar/reader.go

    		case paxUname:
    			hdr.Uname = v
    		case paxGname:
    			hdr.Gname = v
    		case paxUid:
    			id64, err = strconv.ParseInt(v, 10, 64)
    			hdr.Uid = int(id64) // Integer overflow possible
    		case paxGid:
    			id64, err = strconv.ParseInt(v, 10, 64)
    			hdr.Gid = int(id64) // Integer overflow possible
    		case paxAtime:
    			hdr.AccessTime, err = parsePAXTime(v)
    		case paxMtime:
    			hdr.ModTime, err = parsePAXTime(v)
    		case paxCtime:
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  7. misc/ios/go_ios_exec.go

    		<key>.*</key>
    		<true/>
    		<key>Info.plist</key>
    		<dict>
    			<key>omit</key>
    			<true/>
    			<key>weight</key>
    			<integer>10</integer>
    		</dict>
    		<key>ResourceRules.plist</key>
    		<dict>
    			<key>omit</key>
    			<true/>
    			<key>weight</key>
    			<integer>100</integer>
    		</dict>
    	</dict>
    </dict>
    </plist>
    `
    
    const lldbDriver = `
    import sys
    import os
    import signal
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  8. internal/s3select/sql/funceval.go

    }
    
    func errCastFailure(msg string) error {
    	return fmt.Errorf("Error casting: %s", msg)
    }
    
    // Allowed cast types
    const (
    	castBool      = "BOOL"
    	castInt       = "INT"
    	castInteger   = "INTEGER"
    	castString    = "STRING"
    	castFloat     = "FLOAT"
    	castDecimal   = "DECIMAL"
    	castNumeric   = "NUMERIC"
    	castTimestamp = "TIMESTAMP"
    )
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 13.2K bytes
    - Viewed (0)
  9. internal/bucket/object/lock/lock.go

    			return fmt.Errorf("Default retention period must be a positive integer value for 'Days'")
    		}
    		if *retention.Days > maximumRetentionDays {
    			return fmt.Errorf("Default retention period too large for 'Days' %d", *retention.Days)
    		}
    	} else if *retention.Years == 0 {
    		return fmt.Errorf("Default retention period must be a positive integer value for 'Years'")
    	} else if *retention.Years > maximumRetentionYears {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  10. cmd/erasure-metadata-utils.go

    	for _, disk := range disks {
    		if disk == nil {
    			continue
    		}
    		diskCount++
    	}
    	return diskCount
    }
    
    // hashOrder - hashes input key to return consistent
    // hashed integer slice. Returned integer order is salted
    // with an input key. This results in consistent order.
    // NOTE: collisions are fine, we are not looking for uniqueness
    // in the slices returned.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 11.3K bytes
    - Viewed (0)
Back to top