Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 106 for repeat (0.18 sec)

  1. docs/debugging/pprofgoparser/main.go

    			continue
    		}
    		r, err := parseGoroutineType2(arg)
    		if err != nil {
    			log.Fatal(err)
    		}
    
    		profFName := path.Base(arg)
    		fmt.Println(strings.Repeat("=", len(profFName)))
    		fmt.Println(profFName)
    		fmt.Println(strings.Repeat("=", len(profFName)))
    		fmt.Println("")
    
    		for t, stacks := range r {
    			if less != 0 && t >= less {
    				continue
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Mar 06 11:43:16 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  2. cmd/update-notifier.go

    		color.YellowBold(topLeftChar + strings.Repeat(horizBarChar, maxContentWidth) + topRightChar),
    		color.YellowBold(vertBarChar) + line1InColor + strings.Repeat(" ", maxContentWidth-line1Length) + color.YellowBold(vertBarChar),
    		color.YellowBold(vertBarChar) + line2InColor + strings.Repeat(" ", maxContentWidth-line2Length) + color.YellowBold(vertBarChar),
    		color.YellowBold(bottomLeftChar + strings.Repeat(horizBarChar, maxContentWidth) + bottomRightChar),
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    func TestRepeat(t *testing.T) {
    	for _, tt := range RepeatTests {
    		tin := []byte(tt.in)
    		tout := []byte(tt.out)
    		a := Repeat(tin, tt.count)
    		if !Equal(a, tout) {
    			t.Errorf("Repeat(%q, %d) = %q; want %q", tin, tt.count, a, tout)
    			continue
    		}
    	}
    }
    
    func repeat(b []byte, count int) (err error) {
    	defer func() {
    		if r := recover(); r != nil {
    			switch v := r.(type) {
    			case error:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  4. internal/amztime/iso8601_time.go

    	value := t.Format(iso8601TimeFormat)
    	if len(value) < len(iso8601TimeFormat) {
    		value = t.Format(iso8601TimeFormat[:len(iso8601TimeFormat)-1])
    		// Pad necessary zeroes to full-fill the iso8601TimeFormat
    		return value + strings.Repeat("0", (len(iso8601TimeFormat)-1)-len(value)) + "Z"
    	}
    	return value
    }
    
    // ISO8601Parse parses ISO8601 date string
    func ISO8601Parse(iso8601 string) (t time.Time, err error) {
    	for _, layout := range []string{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 16 23:38:33 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  5. src/archive/zip/zip_test.go

    		return part.off+part.n > off
    	})
    	parts := r.buf[skipParts:]
    	if len(parts) > 0 {
    		skipBytes := off - parts[0].off
    		for _, part := range parts {
    			repeat := int(min(part.n-skipBytes, int64(len(p)-n)))
    			memset(p[n:n+repeat], part.b)
    			n += repeat
    			if n == len(p) {
    				return
    			}
    			skipBytes = 0
    		}
    	}
    	if n != len(p) {
    		err = io.ErrUnexpectedEOF
    	}
    	return
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  6. cmd/erasure-healing-common_test.go

    		},
    	}
    
    	bucket := "bucket"
    	err = obj.MakeBucket(ctx, "bucket", MakeBucketOptions{})
    	if err != nil {
    		t.Fatalf("Failed to make a bucket %v", err)
    	}
    
    	object := "object"
    	data := bytes.Repeat([]byte("a"), smallFileThreshold*16)
    	z := obj.(*erasureServerPools)
    
    	erasureDisks, err := z.GetDisks(0, 0)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	for i, test := range testCases {
    		test := test
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 23K bytes
    - Viewed (1)
  7. cmd/benchmark-utils_test.go

    	rand.Seed(UTCNow().UnixNano())
    	// pick a character randomly.
    	return []byte{letterBytes[rand.Intn(len(letterBytes))]}
    }
    
    // picks a random byte and repeats it to size bytes.
    func generateBytesData(size int) []byte {
    	// repeat the random character chosen size
    	return bytes.Repeat(getRandomByte(), size)
    }
    
    // Parallel benchmark utility functions for ObjectLayer.PutObject().
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 23 15:46:00 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  8. cmd/erasure-object_test.go

    		object    string
    		content   []byte
    	}{
    		{"bucket1", false, "object1", []byte("aaaaaaaaaaaaaaaa")},
    		{"bucket2", false, "object2", bytes.Repeat([]byte{'a'}, smallFileThreshold*2)},
    		{"bucket3", true, "version1", []byte("aaaaaaaaaaaaaaaa")},
    		{"bucket4", true, "version2", bytes.Repeat([]byte{'a'}, smallFileThreshold*2)},
    	}
    
    	for i, testCase := range testCases {
    		// Step 1: create a bucket
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 36.8K bytes
    - Viewed (0)
  9. cmd/post-policy_test.go

    			data:                bytes.Repeat([]byte("a"), 1025),
    			expectedRespStatus:  http.StatusNoContent,
    			accessKey:           credentials.AccessKey,
    			secretKey:           credentials.SecretKey,
    			malformedBody:       false,
    			ignoreContentLength: true,
    		},
    		// Failed with entity too small.
    		{
    			objectName:          "test",
    			data:                bytes.Repeat([]byte("a"), 1023),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  10. src/archive/tar/writer_test.go

    						int64(1e10 - blockSize),
    						strings.Repeat("\x00", blockSize-100) + strings.Repeat("0123456789", 10),
    						int64(1e10 - blockSize),
    						strings.Repeat("\x00", blockSize-100) + strings.Repeat("0123456789", 10),
    						int64(1e10 - blockSize),
    						strings.Repeat("\x00", blockSize-100) + strings.Repeat("0123456789", 10),
    						int64(1e10 - blockSize),
    						strings.Repeat("\x00", blockSize-100) + strings.Repeat("0123456789", 10),
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
Back to top