Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for sliceForAppend (0.32 sec)

  1. src/crypto/tls/conn.go

    		}
    
    		plaintext = payload[:n]
    	}
    
    	hc.incSeq()
    	return plaintext, typ, nil
    }
    
    // sliceForAppend extends the input slice by n bytes. head is the full extended
    // slice, while tail is the appended part. If the original slice has sufficient
    // capacity no allocation is performed.
    func sliceForAppend(in []byte, n int) (head, tail []byte) {
    	if total := len(in) + n; cap(in) >= total {
    		head = in[:total]
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
Back to top