Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 48 of 48 for FormatInt (0.14 sec)

  1. internal/grid/grid_test.go

    var stateIndex = [...]uint8{0, 11, 21, 30, 45, 53}
    
    func (i State) String() string {
    	if i >= State(len(stateIndex)-1) {
    		return "State(" + strconv.FormatInt(int64(i), 10) + ")"
    	}
    	return stateName[stateIndex[i]:stateIndex[i+1]]
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  2. cmd/erasure-multipart.go

    		if v := opts.UserDefined[ReservedMetadataPrefix+"Actual-Object-Size"]; v != "" {
    			fi.Metadata[ReservedMetadataPrefix+"actual-size"] = v
    		}
    	} else {
    		fi.Metadata[ReservedMetadataPrefix+"actual-size"] = strconv.FormatInt(objectActualSize, 10)
    	}
    
    	if opts.DataMovement {
    		fi.SetDataMov()
    	}
    
    	// Update all erasure metadata, make sure to not modify fields like
    	// checksum which are different on each disks.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
  3. src/archive/tar/reader_test.go

    		wantSize  int64
    		wantName  string
    		wantErr   error
    	}{{
    		inputHdrs: nil,
    		wantErr:   nil,
    	}, {
    		inputHdrs: map[string]string{
    			paxGNUSparseNumBlocks: strconv.FormatInt(math.MaxInt64, 10),
    			paxGNUSparseMap:       "0,1,2,3",
    		},
    		wantErr: ErrHeader,
    	}, {
    		inputHdrs: map[string]string{
    			paxGNUSparseNumBlocks: "4\x00",
    			paxGNUSparseMap:       "0,1,2,3",
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  4. cmd/api-errors.go

    			}
    		case InvalidRange:
    			apiErr = APIError{
    				Code:           "InvalidRange",
    				Description:    e.Error(),
    				HTTPStatusCode: errorCodes[ErrInvalidRange].HTTPStatusCode,
    				ObjectSize:     strconv.FormatInt(e.ResourceSize, 10),
    				RangeRequested: fmt.Sprintf("%d-%d", e.OffsetBegin, e.OffsetEnd),
    			}
    		case InvalidArgument:
    			apiErr = APIError{
    				Code:           "InvalidArgument",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 92.1K bytes
    - Viewed (0)
  5. cmd/erasure-object.go

    	tags["set"] = strconv.Itoa(er.setIndex)
    	tags["pool"] = strconv.Itoa(er.poolIndex)
    	tags["merrs"] = joinErrs(errs)
    	tags["derrs"] = fmt.Sprintf("%v", dataErrsByPart)
    	if m.IsValid() {
    		tags["sz"] = strconv.FormatInt(m.Size, 10)
    		tags["mt"] = m.ModTime.Format(iso8601Format)
    		tags["d:p"] = fmt.Sprintf("%d:%d", m.Erasure.DataBlocks, m.Erasure.ParityBlocks)
    	} else {
    		tags["invalid"] = "1"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  6. cmd/admin-handlers-users.go

    		return nil
    	}
    	dur := exp.Sub(time.Now())
    	if dur <= 0 {
    		return errors.New("unsupported expiration time")
    	}
    	condValues["DurationSeconds"] = []string{strconv.FormatInt(int64(dur.Seconds()), 10)}
    	return nil
    }
    
    func commonAddServiceAccount(r *http.Request, ldap bool) (context.Context, auth.Credentials, newServiceAccountOpts, madmin.AddServiceAccountReq, string, APIError) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
  7. src/cmd/cgo/gcc.go

    		Len: c.intExpr(n),
    		Elt: c.byte,
    	}
    }
    
    // Expr for integer n.
    func (c *typeConv) intExpr(n int64) ast.Expr {
    	return &ast.BasicLit{
    		Kind:  token.INT,
    		Value: strconv.FormatInt(n, 10),
    	}
    }
    
    // Add padding of given size to fld.
    func (c *typeConv) pad(fld []*ast.Field, sizes []int64, size int64) ([]*ast.Field, []int64) {
    	n := len(fld)
    	fld = fld[0 : n+1]
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 18 15:07:34 UTC 2024
    - 97.1K bytes
    - Viewed (0)
  8. api/go1.txt

    pkg strconv, func Atoi(string) (int, error)
    pkg strconv, func CanBackquote(string) bool
    pkg strconv, func FormatBool(bool) string
    pkg strconv, func FormatFloat(float64, uint8, int, int) string
    pkg strconv, func FormatInt(int64, int) string
    pkg strconv, func FormatUint(uint64, int) string
    pkg strconv, func IsPrint(int32) bool
    pkg strconv, func Itoa(int) string
    pkg strconv, func ParseBool(string) (bool, error)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top