Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 52 for FormatUint (0.32 sec)

  1. internal/grid/msg_string.go

    var _Op_index = [...]uint8{0, 7, 22, 26, 30, 40, 55, 74, 93, 105, 117, 130, 142, 148, 155, 163, 173, 179}
    
    func (i Op) String() string {
    	i -= 1
    	if i >= Op(len(_Op_index)-1) {
    		return "Op(" + strconv.FormatInt(int64(i+1), 10) + ")"
    	}
    	return _Op_name[_Op_index[i]:_Op_index[i+1]]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  2. cmd/bucket-policy.go

    		authtype = "REST-HEADER"
    	case authTypePostPolicy:
    		authtype = "POST"
    	}
    
    	args := map[string][]string{
    		"CurrentTime":      {currTime.Format(time.RFC3339)},
    		"EpochTime":        {strconv.FormatInt(currTime.Unix(), 10)},
    		"SecureTransport":  {strconv.FormatBool(r.TLS != nil)},
    		"SourceIp":         {handlers.GetSourceIPRaw(r)},
    		"UserAgent":        {r.UserAgent()},
    		"Referer":          {r.Referer()},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8K bytes
    - Viewed (0)
  3. internal/disk/stat_linux_32bit.go

    	"2fc12fc1": "zfs",
    	"ff534d42": "cifs",
    	"53464846": "wslfs",
    }
    
    // getFSType returns the filesystem type of the underlying mounted filesystem
    func getFSType(ftype int32) string {
    	fsTypeHex := strconv.FormatInt(int64(ftype), 16)
    	fsTypeString, ok := fsType2StringMap[fsTypeHex]
    	if !ok {
    		return "UNKNOWN"
    	}
    	return fsTypeString
    }
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  4. cmd/test-utils_test.go

    	req.Header.Set("x-amz-content-sha256", "STREAMING-AWS4-HMAC-SHA256-PAYLOAD")
    	req.Header.Set("content-encoding", "aws-chunked")
    	req.Header.Set("x-amz-decoded-content-length", strconv.FormatInt(dataLength, 10))
    	req.Header.Set("content-length", strconv.FormatInt(contentLength, 10))
    
    	// Seek back to beginning.
    	body.Seek(0, 0)
    
    	// Add body
    	req.Body = io.NopCloser(body)
    	req.ContentLength = contentLength
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  5. src/archive/tar/strconv.go

    	}
    	return int64(x)
    }
    
    func (f *formatter) formatOctal(b []byte, x int64) {
    	if !fitsInOctal(len(b), x) {
    		x = 0 // Last resort, just write zero
    		f.err = ErrFieldTooLong
    	}
    
    	s := strconv.FormatInt(x, 8)
    	// Add leading zeros, but leave room for a NUL.
    	if n := len(b) - len(s) - 1; n > 0 {
    		s = strings.Repeat("0", n) + s
    	}
    	f.formatString(b, s)
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  6. internal/config/notify/legacy.go

    		},
    		config.KV{
    			Key:   target.NATSTLSSkipVerify,
    			Value: config.FormatBool(cfg.Secure),
    		},
    		config.KV{
    			Key:   target.NATSPingInterval,
    			Value: strconv.FormatInt(cfg.PingInterval, 10),
    		},
    		config.KV{
    			Key:   target.NATSQueueDir,
    			Value: cfg.QueueDir,
    		},
    		config.KV{
    			Key:   target.NATSQueueLimit,
    			Value: strconv.Itoa(int(cfg.QueueLimit)),
    		},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 19 04:37:54 GMT 2024
    - 13.1K bytes
    - Viewed (0)
  7. src/archive/tar/writer.go

    			paxHdrs[paxGNUSparseMajor] = "1"
    			paxHdrs[paxGNUSparseMinor] = "0"
    			paxHdrs[paxGNUSparseName] = realName
    			paxHdrs[paxGNUSparseRealSize] = strconv.FormatInt(realSize, 10)
    			paxHdrs[paxSize] = strconv.FormatInt(hdr.Size, 10)
    			delete(paxHdrs, paxPath) // Recorded by paxGNUSparseName
    		}
    	*/
    	_ = realSize
    
    	// Write PAX records to the output.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  8. cmd/signature-v4-utils.go

    			// But some clients deviate from this rule. Hence we consider Content-Length for signature
    			// calculation to be compatible with such clients.
    			extractedSignedHeaders.Set(header, strconv.FormatInt(r.ContentLength, 10))
    		default:
    			return nil, ErrUnsignedHeaders
    		}
    	}
    	return extractedSignedHeaders, ErrNone
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 18:56:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  9. cmd/signature-v4.go

    	// Verify signature.
    	if !compareSignatureV4(req.Form.Get(xhttp.AmzSignature), newSignature) {
    		return ErrSignatureDoesNotMatch
    	}
    
    	r.Header.Set("x-amz-signature-age", strconv.FormatInt(UTCNow().Sub(pSignValues.Date).Milliseconds(), 10))
    
    	return ErrNone
    }
    
    // doesSignatureMatch - Verify authorization header with calculated header in accordance with
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  10. cmd/api-headers.go

    	}
    
    	// For providing ranged content
    	start, rangeLen, err = rs.GetOffsetLength(totalObjectSize)
    	if err != nil {
    		return err
    	}
    
    	// Set content length.
    	w.Header().Set(xhttp.ContentLength, strconv.FormatInt(rangeLen, 10))
    	if rs != nil {
    		contentRange := fmt.Sprintf("bytes %d-%d/%d", start, start+rangeLen-1, totalObjectSize)
    		w.Header().Set(xhttp.ContentRange, contentRange)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.9K bytes
    - Viewed (1)
Back to top