Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 185 for iota (0.12 sec)

  1. src/archive/tar/strconv.go

    	const padding = 3 // Extra padding for ' ', '=', and '\n'
    	size := len(k) + len(v) + padding
    	size += len(strconv.Itoa(size))
    	record := strconv.Itoa(size) + " " + k + "=" + v + "\n"
    
    	// Final adjustment if adding size field increased the record size.
    	if len(record) != size {
    		size = len(record)
    		record = strconv.Itoa(size) + " " + k + "=" + v + "\n"
    	}
    	return record, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:28:42 UTC 2023
    - 9K bytes
    - Viewed (0)
  2. src/os/user/cgo_listgroups_unix.go

    		if err := groupRetry(u.Username, nameC, userGID, &gidsC, &n); err != nil {
    			return nil, err
    		}
    	}
    	gidsC = gidsC[:n]
    	gids := make([]string, 0, n)
    	for _, g := range gidsC[:n] {
    		gids = append(gids, strconv.Itoa(int(g)))
    	}
    	return gids, nil
    }
    
    // groupRetry retries getGroupList with much larger size for n. The result is
    // stored in gids.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 11 04:31:34 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  3. src/os/user/user.go

    }
    
    // UnknownUserIdError is returned by [LookupId] when a user cannot be found.
    type UnknownUserIdError int
    
    func (e UnknownUserIdError) Error() string {
    	return "user: unknown userid " + strconv.Itoa(int(e))
    }
    
    // UnknownUserError is returned by [Lookup] when
    // a user cannot be found.
    type UnknownUserError string
    
    func (e UnknownUserError) Error() string {
    	return "user: unknown user " + string(e)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. src/runtime/trace2map_test.go

    		m.Reset()
    	}
    }
    
    func TestTraceMapConcurrent(t *testing.T) {
    	var m TraceMap
    
    	var wg sync.WaitGroup
    	for i := range 3 {
    		wg.Add(1)
    		go func(i int) {
    			defer wg.Done()
    
    			si := strconv.Itoa(i)
    			var d = [...]string{
    				"a" + si,
    				"b" + si,
    				"aa" + si,
    				"ab" + si,
    				"ba" + si,
    				"bb" + si,
    			}
    			ids := make([]uint64, 0, len(d))
    			for _, s := range d {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 18:52:49 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. src/net/http/triv.go

    	n  int
    }
    
    // This makes Counter satisfy the [expvar.Var] interface, so we can export
    // it directly.
    func (ctr *Counter) String() string {
    	ctr.mu.Lock()
    	defer ctr.mu.Unlock()
    	return strconv.Itoa(ctr.n)
    }
    
    func (ctr *Counter) ServeHTTP(w http.ResponseWriter, req *http.Request) {
    	ctr.mu.Lock()
    	defer ctr.mu.Unlock()
    	switch req.Method {
    	case "GET":
    		ctr.n++
    	case "POST":
    		var buf strings.Builder
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. src/internal/fuzz/worker_test.go

    	for sz := 1; sz <= len(bytes); sz <<= 1 {
    		sz := sz
    		input := []any{bytes[:sz]}
    		encodedVals := marshalCorpusFile(input...)
    		mem = <-ws.memMu
    		mem.setValue(encodedVals)
    		ws.memMu <- mem
    		b.Run(strconv.Itoa(sz), func(b *testing.B) {
    			i := 0
    			ws.fuzzFn = func(_ CorpusEntry) (time.Duration, error) {
    				if i == 0 {
    					i++
    					return time.Second, errors.New("initial failure for deflake")
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 4.8K bytes
    - Viewed (0)
  7. src/debug/dwarf/typeunit.go

    		if n != Offset(uint32(n)) {
    			b.error("type unit length overflow")
    			return b.err
    		}
    		hdroff := b.off
    		vers := int(b.uint16())
    		if vers != 4 {
    			b.error("unsupported DWARF version " + strconv.Itoa(vers))
    			return b.err
    		}
    		var ao uint64
    		if !dwarf64 {
    			ao = uint64(b.uint32())
    		} else {
    			ao = b.uint64()
    		}
    		atable, err := d.parseAbbrev(ao, vers)
    		if err != nil {
    			return err
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. src/crypto/des/cipher.go

    	"internal/byteorder"
    	"strconv"
    )
    
    // The DES block size in bytes.
    const BlockSize = 8
    
    type KeySizeError int
    
    func (k KeySizeError) Error() string {
    	return "crypto/des: invalid key size " + strconv.Itoa(int(k))
    }
    
    // desCipher is an instance of DES encryption.
    type desCipher struct {
    	subkeys [16]uint64
    }
    
    // NewCipher creates and returns a new [cipher.Block].
    func NewCipher(key []byte) (cipher.Block, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/context.go

    func (ctxt *Context) instanceHash(orig Type, targs []Type) string {
    	assert(ctxt != nil)
    	assert(orig != nil)
    	var buf bytes.Buffer
    
    	h := newTypeHasher(&buf, ctxt)
    	h.string(strconv.Itoa(ctxt.getID(orig)))
    	// Because we've already written the unique origin ID this call to h.typ is
    	// unnecessary, but we leave it for hash readability. It can be removed later
    	// if performance is an issue.
    	h.typ(orig)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:29:21 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. src/image/geom.go

    type Point struct {
    	X, Y int
    }
    
    // String returns a string representation of p like "(3,4)".
    func (p Point) String() string {
    	return "(" + strconv.Itoa(p.X) + "," + strconv.Itoa(p.Y) + ")"
    }
    
    // Add returns the vector p+q.
    func (p Point) Add(q Point) Point {
    	return Point{p.X + q.X, p.Y + q.Y}
    }
    
    // Sub returns the vector p-q.
    func (p Point) Sub(q Point) Point {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 7.3K bytes
    - Viewed (0)
Back to top