Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for 0123456789ABCDEF (0.22 sec)

  1. cmd/api-utils.go

    		return string(t)
    	}
    
    	j := 0
    	for i := 0; i < len(s); i++ {
    		switch c := s[i]; {
    		case c == ' ':
    			t[j] = '+'
    			j++
    		case shouldEscape(c):
    			t[j] = '%'
    			t[j+1] = "0123456789ABCDEF"[c>>4]
    			t[j+2] = "0123456789ABCDEF"[c&15]
    			j += 3
    		default:
    			t[j] = s[i]
    			j++
    		}
    	}
    	return string(t)
    }
    
    // s3EncodeName encodes string in response when encodingType is specified in AWS S3 requests.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  2. internal/kms/context.go

    		escapeStringJSON(b, c[k])
    		b.WriteByte('"')
    		if i < len(sortedKeys)-1 {
    			b.WriteByte(',')
    		}
    	}
    	b.WriteByte('}')
    	return b.Bytes(), nil
    }
    
    // Adapted from Go stdlib.
    
    var hexTable = "0123456789abcdef"
    
    // escapeStringJSON will escape a string for JSON and write it to dst.
    func escapeStringJSON(dst *bytes.Buffer, s string) {
    	start := 0
    	for i := 0; i < len(s); {
    		if b := s[i]; b < utf8.RuneSelf {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 6K bytes
    - Viewed (0)
  3. cmd/object_api_suite_test.go

    	if err != nil {
    		t.Fatalf("%s: <ERROR> %s", instanceType, err)
    	}
    	uploadID := res.UploadID
    
    	// Create a byte array of 5MiB.
    	data := bytes.Repeat([]byte("0123456789abcdef"), 5*humanize.MiByte/16)
    	completedParts := CompleteMultipartUpload{}
    	for i := 1; i <= 10; i++ {
    		expectedETaghex := getMD5Hash(data)
    
    		var calcPartInfo PartInfo
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 32.3K bytes
    - Viewed (0)
  4. cmd/server_test.go

    	response, err := s.client.Do(request)
    	c.Assert(err, nil)
    	c.Assert(response.StatusCode, 200)
    
    	// Create a byte array of 5MB.
    	// content for the object to be uploaded.
    	data := bytes.Repeat([]byte("0123456789abcdef"), 5*humanize.MiByte/16)
    	// calculate etag of the data.
    	etagBase64 := getMD5HashBase64(data)
    
    	buffer1 := bytes.NewReader(data)
    	objectName := "test-1-object"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
Back to top