Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for http2bufPoolIndex (0.11 sec)

  1. src/net/http/h2_bundle.go

    // It exists mainly as a safety measure, for potential future increases in max buffer size.
    var http2bufPools [7]sync.Pool // of *[]byte
    
    func http2bufPoolIndex(size int) int {
    	if size <= 16384 {
    		return 0
    	}
    	size -= 1
    	bits := bits.Len(uint(size))
    	index := bits - 14
    	if index >= len(http2bufPools) {
    		return len(http2bufPools) - 1
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
Back to top