rename frame.Write to frame.Append

This commit is contained in:
Marten Seemann
2022-08-28 23:13:19 +03:00
parent 3ca1001951
commit ab6d664b43
50 changed files with 112 additions and 112 deletions

View File

@@ -107,7 +107,7 @@ func parseAckFrame(r *bytes.Reader, ackDelayExponent uint8, _ protocol.VersionNu
}
// Write writes an ACK frame.
func (f *AckFrame) Write(b []byte, _ protocol.VersionNumber) ([]byte, error) {
func (f *AckFrame) Append(b []byte, _ protocol.VersionNumber) ([]byte, error) {
hasECN := f.ECT0 > 0 || f.ECT1 > 0 || f.ECNCE > 0
if hasECN {
b = append(b, 0b11)