Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for LastIndexByte (0.18 sec)

  1. internal/jwt/parser.go

    	token = token[:copy(token[:base64BufferSize], tokenStr)]
    
    	signer, err := ParseUnverifiedStandardClaims(token, claims, *bufp)
    	if err != nil {
    		return err
    	}
    
    	i := bytes.LastIndexByte(token, '.')
    	if i < 0 {
    		return jwtgo.ErrSignatureInvalid
    	}
    
    	n, err := base64DecodeBytes(token[i+1:], *bufp)
    	if err != nil {
    		return err
    	}
    	borrow := signer.HashBorrower()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue May 09 07:53:08 GMT 2023
    - 13.9K bytes
    - Viewed (0)
  2. cmd/api-headers.go

    		lc.SetPredictionHeaders(w, objInfo.ToLifecycleOpts())
    	}
    
    	if v, ok := objInfo.UserDefined[ReservedMetadataPrefix+"compression"]; ok {
    		if i := strings.LastIndexByte(v, '/'); i >= 0 {
    			v = v[i+1:]
    		}
    		w.Header()[xhttp.MinIOCompressed] = []string{v}
    	}
    
    	return nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.9K bytes
    - Viewed (1)
  3. cmd/data-usage-cache.go

    // This is an O(N*N) operation if there is no parent or it cannot be guessed.
    func (d *dataUsageCache) searchParent(h dataUsageHash) *dataUsageHash {
    	want := h.Key()
    	if idx := strings.LastIndexByte(want, '/'); idx >= 0 {
    		if v := d.find(want[:idx]); v != nil {
    			_, ok := v.Children[want]
    			if ok {
    				found := hashPath(want[:idx])
    				return &found
    			}
    		}
    	}
    	for k, v := range d.Cache {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
Back to top