github.com/tumi8/quic-go@v0.37.4-tum/noninternal/wire/interface.go (about) 1 package wire 2 3 import ( 4 "github.com/tumi8/quic-go/noninternal/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 }