Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for tokenbuf (0.16 sec)

  1. internal/jwt/parser.go

    	}
    
    	bufp := base64BufPool.Get().(*[]byte)
    	defer base64BufPool.Put(bufp)
    
    	tokenBuf := base64BufPool.Get().(*[]byte)
    	defer base64BufPool.Put(tokenBuf)
    
    	token := *tokenBuf
    	// Copy token to buffer, truncate to length.
    	token = token[:copy(token[:base64BufferSize], tokenStr)]
    
    	signer, err := ParseUnverifiedStandardClaims(token, claims, *bufp)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 09 07:53:08 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  2. src/text/scanner/scanner.go

    		s.tokEnd = s.tokPos
    	}
    	// s.tokEnd >= s.tokPos
    
    	if s.tokBuf.Len() == 0 {
    		// common case: the entire token text is still in srcBuf
    		return string(s.srcBuf[s.tokPos:s.tokEnd])
    	}
    
    	// part of the token text was saved in tokBuf: save the rest in
    	// tokBuf as well and return its content
    	s.tokBuf.Write(s.srcBuf[s.tokPos:s.tokEnd])
    	s.tokPos = s.tokEnd // ensure idempotency of TokenText() call
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 20.3K bytes
    - Viewed (0)
Back to top