Search Options

Results per page
Sort
Preferred Languages
Advance

Results 451 - 460 of 804 for doappend (0.14 sec)

  1. src/bytes/bytes.go

    		c := s[i]
    		if c < utf8.RuneSelf {
    			i++
    			invalid = false
    			b = append(b, c)
    			continue
    		}
    		_, wid := utf8.DecodeRune(s[i:])
    		if wid == 1 {
    			i++
    			if !invalid {
    				invalid = true
    				b = append(b, replacement...)
    			}
    			continue
    		}
    		invalid = false
    		b = append(b, s[i:i+wid]...)
    		i += wid
    	}
    	return b
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  2. cmd/batch-expire.go

    				if exp.ExpireAll {
    					toExpireAll = append(toExpireAll, exp.ObjectInfo)
    					continue
    				}
    				// Cache ObjectInfo value via pointers for
    				// subsequent use to track objects which
    				// couldn't be deleted.
    				od := ObjectToDelete{
    					ObjectV: ObjectV{
    						ObjectName: exp.Name,
    						VersionID:  exp.VersionID,
    					},
    				}
    				toDel = append(toDel, od)
    				oiCache.Add(od, &exp.ObjectInfo)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. src/bytes/buffer.go

    		}
    	}()
    	// TODO(http://golang.org/issue/51462): We should rely on the append-make
    	// pattern so that the compiler can call runtime.growslice. For example:
    	//	return append(b, make([]byte, n)...)
    	// This avoids unnecessary zero-ing of the first len(b) bytes of the
    	// allocated slice, but this pattern causes b to escape onto the heap.
    	//
    	// Instead use the append-make pattern with a nil slice to ensure that
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Oct 29 16:47:05 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  4. cmd/metrics-resource.go

    	name := rm.Name
    	metrics := make([]MetricV2, 0, 3)
    	metrics = append(metrics, MetricV2{
    		Description:    getResourceMetricDescription(subSys, name, help),
    		Value:          rm.Current,
    		VariableLabels: cloneMSS(rm.Labels),
    	})
    
    	if requireAvgMax {
    		avgName := MetricName(fmt.Sprintf("%s_avg", name))
    		avgHelp := fmt.Sprintf("%s (avg)", help)
    		metrics = append(metrics, MetricV2{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 23:30:33 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  5. internal/s3select/sql/value_test.go

    			b := valueBuilders[j]()
    			tests = append(tests, test{
    				name: fmt.Sprint(a.GetTypeString(), "==", b.GetTypeString()),
    				fields: fields{
    					a: *a, b: *b,
    				},
    				wantOk: i == j,
    			})
    		}
    	}
    	for i := range valueBuilders {
    		a := valueBuilders[i]()
    		for j := range altValueBuilders {
    			b := altValueBuilders[j]()
    			tests = append(tests, test{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/lex/stack.go

    // it resumes reading the next one down.
    type Stack struct {
    	tr []TokenReader
    }
    
    // Push adds tr to the top (end) of the input stack. (Popping happens automatically.)
    func (s *Stack) Push(tr TokenReader) {
    	s.tr = append(s.tr, tr)
    }
    
    func (s *Stack) Next() ScanToken {
    	tos := s.tr[len(s.tr)-1]
    	tok := tos.Next()
    	for tok == scanner.EOF && len(s.tr) > 1 {
    		tos.Close()
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Jan 09 22:33:23 UTC 2017
    - 1.2K bytes
    - Viewed (0)
  7. cmd/perf-tests.go

    					// have to capture failed reads, truncated
    					// reads etc.
    					atomic.AddUint64(&totalBytesRead, uint64(n))
    					mu.Lock()
    					downloadTimes = append(downloadTimes, response)
    					downloadTTFB = append(downloadTTFB, ttfb)
    					mu.Unlock()
    				}
    				if err != nil {
    					if !contextCanceled(downloadsCtx) && !errors.Is(err, context.Canceled) {
    						errOnce.Do(func() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. docs/debugging/inspect/export.go

    		}
    		// Skip data...
    		val, buf, e = msgp.ReadBytesZC(buf)
    		if e != nil {
    			return nil, e
    		}
    		if i > 0 {
    			res = append(res, ',')
    		}
    		s := fmt.Sprintf(`"%s":%d`, string(key), len(val))
    		res = append(res, []byte(s)...)
    	}
    	res = append(res, '}')
    	return res, nil
    }
    
    const (
    	xlHeaderVersion = 2
    	xlMetaVersion   = 1
    )
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 08 15:58:02 UTC 2022
    - 9.1K bytes
    - Viewed (0)
  9. tests/test_ws_dependencies.py

    
    def dependency_list() -> List[str]:
        return []
    
    
    DepList = Annotated[List[str], Depends(dependency_list)]
    
    
    def create_dependency(name: str):
        def fun(deps: DepList):
            deps.append(name)
    
        return Depends(fun)
    
    
    router = APIRouter(dependencies=[create_dependency("router")])
    prefix_router = APIRouter(dependencies=[create_dependency("prefix_router")])
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Jun 11 20:35:39 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/DfsReferral.java

        public boolean resolveHashes;
        public long expiration;
    
        DfsReferral next;
        Map map;
        String key = null;
    
        public DfsReferral()
        {
            this.next = this;
        }
    
        void append(DfsReferral dr)
        {
            dr.next = next;
            next = dr;
        }
    
        public String toString() {
            return "DfsReferral[pathConsumed=" + pathConsumed +
                ",server=" + server +
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 1.8K bytes
    - Viewed (0)
Back to top