Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for 2048 (0.16 sec)

  1. cmd/sts-handlers.go

    	// The plain text that you use for both inline and managed session
    	// policies shouldn't exceed 2048 characters.
    	if len(sessionPolicyStr) > 2048 {
    		writeSTSErrorResponse(ctx, w, ErrSTSInvalidParameterValue, fmt.Errorf("Session policy should not exceed 2048 characters"))
    		return
    	}
    
    	if len(sessionPolicyStr) > 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 18:36:18 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  2. cmd/typed-errors.go

    var errInvalidMaxParts = errors.New("Part number is greater than the maximum allowed 10000 parts")
    
    // error returned for session policies > 2048
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  3. src/archive/tar/reader_test.go

    		{data2[:1536] + trash[:511], 1, io.ErrUnexpectedEOF},
    		{data2[:1536] + trash, 1, ErrHeader},
    		{data2[:2048], 1, io.EOF}, // Exactly 1 empty block
    		{data2[:2048] + trash[:1], 1, io.ErrUnexpectedEOF},
    		{data2[:2048] + trash[:511], 1, io.ErrUnexpectedEOF},
    		{data2[:2048] + trash, 1, ErrHeader},
    		{data2[:2560], 1, io.EOF}, // Exactly 2 empty blocks (normal end-of-stream)
    		{data2[:2560] + trash[:1], 1, io.EOF},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  4. src/archive/tar/tar_test.go

    		wantAligned:  []sparseEntry{{3072, 1928}},
    		wantInverted: []sparseEntry{{0, 3000}, {5000, 0}},
    	}, {
    		in: []sparseEntry{{2000, 2000}}, size: 5000,
    		wantValid:    true,
    		wantAligned:  []sparseEntry{{2048, 1536}},
    		wantInverted: []sparseEntry{{0, 2000}, {4000, 1000}},
    	}, {
    		in: []sparseEntry{{0, 2000}, {8000, 2000}}, size: 10000,
    		wantValid:    true,
    		wantAligned:  []sparseEntry{{0, 1536}, {8192, 1808}},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  5. cmd/generic-handlers_test.go

    	{header: generateHeader(1024, 0), shouldFail: false},
    	{header: generateHeader(2048, 0), shouldFail: false},
    	{header: generateHeader(8*1024+1, 0), shouldFail: true},
    	{header: generateHeader(0, 1024), shouldFail: false},
    	{header: generateHeader(0, 2048), shouldFail: true},
    	{header: generateHeader(0, 2048+1), shouldFail: true},
    }
    
    func generateHeader(size, usersize int) http.Header {
    	header := http.Header{}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  6. cmd/handler-api.go

    		// the most common page size on x86 systems - for cgroup_limits.
    		return 0
    	}
    	return limit
    }
    
    func availableMemory() (available uint64) {
    	available = 2048 * blockSizeV2 * 2 // Default to 4 GiB when we can't find the limits.
    
    	if runtime.GOOS == "linux" {
    		// Useful in container mode
    		limit := cgroupMemLimit()
    		if limit > 0 {
    			// A valid value is found, return its 75%
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 08 09:22:27 GMT 2024
    - 10K bytes
    - Viewed (0)
  7. src/bytes/bytes_test.go

    				Compare(x, y)
    			}
    		})
    	}
    }
    
    func BenchmarkIndexAnyASCII(b *testing.B) {
    	x := Repeat([]byte{'#'}, 2048) // Never matches set
    	cs := "0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz"
    	for k := 1; k <= 2048; k <<= 4 {
    		for j := 1; j <= 64; j <<= 1 {
    			b.Run(fmt.Sprintf("%d:%d", k, j), func(b *testing.B) {
    				for i := 0; i < b.N; i++ {
    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)
  8. internal/s3select/csv/reader_contrib_test.go

    `,
    			totalFields: 308*2 + 1,
    		}, {
    			file:            "nyc-taxi-data-tabs-100k.csv",
    			recordDelimiter: "\n",
    			fieldDelimiter:  "\t",
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 38.5K bytes
    - Viewed (0)
  9. src/archive/zip/writer_test.go

    	}{
    		{
    			name:    "small store w desc",
    			content: []byte("gophers"),
    			method:  Store,
    			flags:   0x8,
    		},
    		{
    			name:    "small deflate wo desc",
    			content: bytes.Repeat([]byte("abcdefg"), 2048),
    			method:  Deflate,
    		},
    	}
    
    	// write a zip file
    	archive := new(bytes.Buffer)
    	w := NewWriter(archive)
    
    	for i := range files {
    		f := &files[i]
    		f.crc32 = crc32.ChecksumIEEE(f.content)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  10. internal/bpool/bpool_test.go

    package bpool
    
    import "testing"
    
    // Tests - bytePool functionality.
    func TestBytePool(t *testing.T) {
    	size := uint64(4)
    	width := 1024
    	capWidth := 2048
    
    	bufPool := NewBytePoolCap(size, width, capWidth)
    
    	// Check the width
    	if bufPool.Width() != width {
    		t.Fatalf("bytepool width invalid: got %v want %v", bufPool.Width(), width)
    	}
    
    	// Check with width cap
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 19:13:27 GMT 2024
    - 2.6K bytes
    - Viewed (0)
Back to top