Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for pasta (0.16 sec)

  1. src/bytes/compare_test.go

    	b := make([]byte, n+1)
    	for _, len := range lengths {
    		// randomish but deterministic data. No 0 or 255.
    		for i := 0; i < len; i++ {
    			a[i] = byte(1 + 31*i%254)
    			b[i] = byte(1 + 31*i%254)
    		}
    		// data past the end is different
    		for i := len; i <= n; i++ {
    			a[i] = 8
    			b[i] = 9
    		}
    		cmp := Compare(a[:len], b[:len])
    		if cmp != 0 {
    			t.Errorf(`CompareIdentical(%d) = %d`, len, cmp)
    		}
    		if len > 0 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 13 23:11:42 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  2. cmd/metacache-set.go

    	resCh := resultsDone
    	var done bool
    	var mu sync.Mutex
    	resErr := io.EOF
    
    	go func() {
    		var results metaCacheEntriesSorted
    		var returned bool
    		for entry := range in {
    			if returned {
    				// past limit
    				continue
    			}
    			mu.Lock()
    			returned = done
    			mu.Unlock()
    			if returned {
    				resCh = nil
    				continue
    			}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 19:52:52 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/lifecycle.go

    				}
    			}
    		}
    	}
    
    	if len(events) > 0 {
    		sort.Slice(events, func(i, j int) bool {
    			// Prefer Expiration over Transition for both current
    			// and noncurrent versions when,
    			// - now is past the expected time to action
    			// - expected time to action is the same for both actions
    			if now.After(events[i].Due) && now.After(events[j].Due) || events[i].Due.Equal(events[j].Due) {
    				switch events[i].Action {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 06:41:22 GMT 2024
    - 17K bytes
    - Viewed (0)
  4. src/bufio/bufio.go

    			// Put the '\r' back on buf and drop it from line.
    			// Let the next call to ReadLine check for "\r\n".
    			if b.r == 0 {
    				// should be unreachable
    				panic("bufio: tried to rewind past start of buffer")
    			}
    			b.r--
    			line = line[:len(line)-1]
    		}
    		return line, true, nil
    	}
    
    	if len(line) == 0 {
    		if err != nil {
    			line = nil
    		}
    		return
    	}
    	err = nil
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
  5. src/archive/tar/reader.go

    // The bytes written matches the number of remaining bytes in the current file.
    //
    // If the current file is sparse and w is an io.WriteSeeker,
    // then writeTo uses Seek to skip past holes defined in Header.SparseHoles,
    // assuming that skipped regions are filled with NULs.
    // This always writes the last byte to ensure w is the right size.
    //
    // TODO(dsnet): Re-export this when adding sparse file support.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/buildid_linux.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package cgotest
    
    // Test that we have no more than one build ID.  In the past we used
    // to generate a separate build ID for each package using cgo, and the
    // linker concatenated them all.  We don't want that--we only want
    // one.
    
    import (
    	"bytes"
    	"debug/elf"
    	"os"
    	"testing"
    )
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  7. internal/bucket/lifecycle/lifecycle_test.go

    	obj1 := ObjectOpts{
    		Name:     "obj1",
    		IsLatest: true,
    		ModTime:  now,
    	}
    
    	obj2 := ObjectOpts{
    		Name:    "obj2",
    		ModTime: now,
    	}
    
    	// Go back seven days in the past
    	now = now.Add(7 * 24 * time.Hour)
    
    	evt := lc.eval(obj1, now)
    	if evt.Action != TransitionAction {
    		t.Fatalf("Expected action: %s but got %s", TransitionAction, evt.Action)
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 06:41:22 GMT 2024
    - 45.6K bytes
    - Viewed (0)
  8. src/bufio/bufio_test.go

    			n:            27,
    			want:         26,
    			wantErr:      io.EOF,
    			wantBuffered: 0,
    		},
    		// Any error from filling shouldn't show up until we
    		// get past the valid bytes. Here we return 5 valid bytes at the same time
    		// as an error, but test that we don't see the error from Discard.
    		{
    			name: "fill error, discard less",
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  9. src/bufio/scan.go

    //
    // Scanning stops unrecoverably at EOF, the first I/O error, or a token too
    // large to fit in the [Scanner.Buffer]. When a scan stops, the reader may have
    // advanced arbitrarily far past the last token. Programs that need more
    // control over error handling or large tokens, or must run sequential scans
    // on a reader, should use [bufio.Reader] instead.
    type Scanner struct {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  10. cmd/bucket-object-lock.go

    // Objects under site wide WORM can never be overwritten.
    // For objects in "Governance" mode, overwrite is allowed if a) object retention date is past OR
    // governance bypass headers are set and user has governance bypass permissions.
    // Objects in "Compliance" mode can be overwritten only if retention date is past.
    func enforceRetentionBypassForDelete(ctx context.Context, r *http.Request, bucket string, object ObjectToDelete, oi ObjectInfo, gerr error) error {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 13.2K bytes
    - Viewed (0)
Back to top