github.com/MerlinKodo/quic-go@v0.39.2/internal/wire/interface.go (about) 1 package wire 2 3 import ( 4 "github.com/MerlinKodo/quic-go/internal/protocol" 5 ) 6 7 // A Frame in QUIC 8 type Frame interface { 9 Append(b []byte, version protocol.VersionNumber) ([]byte, error) 10 Length(version protocol.VersionNumber) protocol.ByteCount 11 } 12 13 // A FrameParser parses QUIC frames, one by one. 14 type FrameParser interface { 15 ParseNext([]byte, protocol.EncryptionLevel, protocol.VersionNumber) (int, Frame, error) 16 SetAckDelayExponent(uint8) 17 }