Search Options

Results per page
Sort
Preferred Languages
Advance

Results 391 - 400 of 412 for qDecode (0.09 sec)

  1. cmd/metacache-entries.go

    		// Empty entry
    		if entry.name == "" {
    			continue
    		}
    
    		if entry.isDir() {
    			dirExists++
    			selected = entry
    			continue
    		}
    
    		// Get new entry metadata,
    		// shallow decode.
    		xl, err := entry.xlmeta()
    		if err != nil {
    			continue
    		}
    		objsValid++
    
    		// Add all valid to candidates.
    		r.candidates = append(r.candidates, xl.versions)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-v2.go

    	}
    	if versions < 0 {
    		return 0, 0, 0, buf, fmt.Errorf("decodeXLHeaders: Negative version count %d", versions)
    	}
    	return versions, hdrVer, metaVer, buf, nil
    }
    
    // decodeVersions will decode a number of versions from a buffer
    // and perform a callback for each version in order, newest first.
    // Return errDoneForNow to stop processing and return nil.
    // Any non-nil error is returned.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (0)
  3. cmd/utils.go

    	if size > 0 {
    		lbody = io.LimitReader(body, size)
    	} else {
    		lbody = body
    	}
    	d := xml.NewDecoder(lbody)
    	// Ignore any encoding set in the XML body
    	d.CharsetReader = nopCharsetConverter
    	err := d.Decode(v)
    	if errors.Is(err, io.EOF) {
    		err = &xml.SyntaxError{
    			Line: 0,
    			Msg:  err.Error(),
    		}
    	}
    	return err
    }
    
    // hasContentMD5 returns true if Content-MD5 header is set.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  4. cmd/bucket-lifecycle.go

    func parseRestoreRequest(reader io.Reader) (*RestoreObjectRequest, error) {
    	req := RestoreObjectRequest{}
    	if err := xml.NewDecoder(io.LimitReader(reader, maxRestoreObjectRequestSize)).Decode(&req); err != nil {
    		return nil, err
    	}
    	return &req, nil
    }
    
    // validate a RestoreObjectRequest as per AWS S3 spec https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 23 15:35:37 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  5. docs/recipes.md

    ### Parse a JSON Response With Moshi ([.kt][ParseResponseWithMoshiKotlin], [.java][ParseResponseWithMoshiJava])
    
    [Moshi](https://github.com/square/moshi) is a handy API for converting between JSON and Java objects. Here we're using it to decode a JSON response from a GitHub API.
    
    Note that `ResponseBody.charStream()` uses the `Content-Type` response header to select which charset to use when decoding the response body. It defaults to `UTF-8` if no charset is specified.
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Feb 18 08:52:22 UTC 2022
    - 40.2K bytes
    - Viewed (0)
  6. src/cmd/api/main_test.go

    		dec := json.NewDecoder(bytes.NewReader(out))
    		for {
    			var pkg struct {
    				ImportPath, Dir string
    				ImportMap       map[string]string
    				Standard        bool
    			}
    			err := dec.Decode(&pkg)
    			if err == io.EOF {
    				break
    			}
    			if err != nil {
    				log.Fatalf("go list: invalid output: %v", err)
    			}
    
    			// - Package "unsafe" contains special signatures requiring
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 04 18:16:59 UTC 2024
    - 31.4K bytes
    - Viewed (0)
  7. internal/bucket/lifecycle/lifecycle_test.go

    				set:                     true,
    			},
    		},
    	}
    	for i, tc := range testCases {
    		var got NoncurrentVersionExpiration
    		dec := xml.NewDecoder(strings.NewReader(tc.xml))
    		if err := dec.Decode(&got); err != nil || got != tc.expected {
    			if err != nil {
    				t.Fatalf("%d: Failed to unmarshal xml %v", i+1, err)
    			}
    			t.Fatalf("%d: Expected %v but got %v", i+1, tc.expected, got)
    		}
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  8. cmd/peer-rest-server.go

    		return
    	}
    
    	var rulesMap event.RulesMap
    	if r.ContentLength < 0 {
    		s.writeErrorResponse(w, errInvalidArgument)
    		return
    	}
    
    	err := gob.NewDecoder(r.Body).Decode(&rulesMap)
    	if err != nil {
    		s.writeErrorResponse(w, err)
    		return
    	}
    
    	globalEventNotifier.AddRulesMap(bucketName, rulesMap)
    }
    
    // HealthHandler - returns true of health
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  9. cmd/bucket-handlers.go

    				dec := json.NewDecoder(part)
    
    				// while the array contains values
    				for dec.More() {
    					var m minio.PutObjectFanOutEntry
    					if err := dec.Decode(&m); err != nil {
    						part.Close()
    						apiErr := errorCodes.ToAPIErr(ErrMalformedPOSTRequest)
    						apiErr.Description = fmt.Sprintf("%s (%v)", apiErr.Description, err)
    						writeErrorResponse(ctx, w, apiErr, r.URL)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  10. api/go1.5.txt

    pkg mime, const BEncoding WordEncoder
    pkg mime, const QEncoding = 113
    pkg mime, const QEncoding WordEncoder
    pkg mime, func ExtensionsByType(string) ([]string, error)
    pkg mime, method (*WordDecoder) Decode(string) (string, error)
    pkg mime, method (*WordDecoder) DecodeHeader(string) (string, error)
    pkg mime, method (WordEncoder) Encode(string, string) string
    pkg mime, type WordDecoder struct
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
Back to top