Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for FormatInt (0.96 sec)

  1. src/compress/flate/inflate.go

    // A CorruptInputError reports the presence of corrupt input at a given offset.
    type CorruptInputError int64
    
    func (e CorruptInputError) Error() string {
    	return "flate: corrupt input before offset " + strconv.FormatInt(int64(e), 10)
    }
    
    // An InternalError reports an error in the flate code itself.
    type InternalError string
    
    func (e InternalError) Error() string { return "flate: internal error: " + string(e) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 23:20:03 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/profile/merge.go

    	}
    	lines := make([]string, len(l.Line)*3)
    	for i, line := range l.Line {
    		if line.Function != nil {
    			lines[i*2] = strconv.FormatUint(line.Function.ID, 16)
    		}
    		lines[i*2+1] = strconv.FormatInt(line.Line, 16)
    		lines[i*2+2] = strconv.FormatInt(line.Column, 16)
    	}
    	key.lines = strings.Join(lines, "|")
    	return key
    }
    
    type locationKey struct {
    	addr, mappingID uint64
    	lines           string
    	isFolded        bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 17K bytes
    - Viewed (0)
  3. 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.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/typestring.go

    			if obj, _ := Unsafe.scope.Lookup(t.name).(*TypeName); obj != nil {
    				w.typeName(obj)
    				break
    			}
    		}
    		w.string(t.name)
    
    	case *Array:
    		w.byte('[')
    		w.string(strconv.FormatInt(t.len, 10))
    		w.byte(']')
    		w.typ(t.elem)
    
    	case *Slice:
    		w.string("[]")
    		w.typ(t.elem)
    
    	case *Struct:
    		w.string("struct{")
    		for i, f := range t.fields {
    			if i > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types/fmt.go

    			if verb == 'S' {
    				tconv2(b, t.Elem(), 'S', mode, visited)
    				return
    			}
    		}
    		tconv2(b, t.Elem(), 'v', mode, visited)
    
    	case TARRAY:
    		b.WriteByte('[')
    		b.WriteString(strconv.FormatInt(t.NumElem(), 10))
    		b.WriteByte(']')
    		tconv2(b, t.Elem(), 0, mode, visited)
    
    	case TSLICE:
    		b.WriteString("[]")
    		tconv2(b, t.Elem(), 0, mode, visited)
    
    	case TCHAN:
    		switch t.ChanDir() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 15:41:17 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  6. src/archive/tar/common.go

    			if paxKey == paxNone {
    				whyNoPAX = fmt.Sprintf("PAX cannot encode %s=%d", name, n)
    				format.mustNotBe(FormatPAX)
    			} else {
    				paxHdrs[paxKey] = strconv.FormatInt(n, 10)
    			}
    		}
    		if v, ok := h.PAXRecords[paxKey]; ok && v == strconv.FormatInt(n, 10) {
    			paxHdrs[paxKey] = v
    		}
    	}
    	verifyTime := func(ts time.Time, size int, name, paxKey string) {
    		if ts.IsZero() {
    			return // Always okay
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 16:01:50 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  7. src/database/sql/convert.go

    	case string:
    		return v
    	case []byte:
    		return string(v)
    	}
    	rv := reflect.ValueOf(src)
    	switch rv.Kind() {
    	case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
    		return strconv.FormatInt(rv.Int(), 10)
    	case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
    		return strconv.FormatUint(rv.Uint(), 10)
    	case reflect.Float64:
    		return strconv.FormatFloat(rv.Float(), 'g', -1, 64)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modfetch/codehost/vcs.go

    			}
    			tm = t.UTC()
    		}
    	}
    	if revno == 0 || tm.IsZero() {
    		return nil, vcsErrorf("unexpected response from bzr log: %q", out)
    	}
    
    	info := &RevInfo{
    		Name:    strconv.FormatInt(revno, 10),
    		Short:   fmt.Sprintf("%012d", revno),
    		Time:    tm,
    		Version: rev,
    	}
    	return info, nil
    }
    
    func fossilParseStat(rev, out string) (*RevInfo, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/internal/graph/graph.go

    			if flat {
    				t.FlatDiv += dw
    				t.Flat += w
    			} else {
    				t.CumDiv += dw
    				t.Cum += w
    			}
    		}
    	}
    }
    
    func defaultLabelFormat(v int64, key string) string {
    	return strconv.FormatInt(v, 10)
    }
    
    func (m TagMap) findOrAddTag(label, unit string, value int64) *Tag {
    	l := m[label]
    	if l == nil {
    		l = &Tag{
    			Name:  label,
    			Unit:  unit,
    			Value: value,
    		}
    		m[label] = l
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31K bytes
    - Viewed (0)
  10. 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: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 21:14:38 UTC 2022
    - 47.1K bytes
    - Viewed (0)
Back to top