github.com/daeuniverse/quic-go@v0.0.0-20240413031024-943f218e0810/internal/wire/handshake_done_frame.go (about)

     1  package wire
     2  
     3  import (
     4  	"github.com/daeuniverse/quic-go/internal/protocol"
     5  )
     6  
     7  // A HandshakeDoneFrame is a HANDSHAKE_DONE frame
     8  type HandshakeDoneFrame struct{}
     9  
    10  func (f *HandshakeDoneFrame) Append(b []byte, _ protocol.Version) ([]byte, error) {
    11  	return append(b, handshakeDoneFrameType), nil
    12  }
    13  
    14  // Length of a written frame
    15  func (f *HandshakeDoneFrame) Length(_ protocol.Version) protocol.ByteCount {
    16  	return 1
    17  }