mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-06 13:47:35 +03:00
18 lines
380 B
Go
18 lines
380 B
Go
package wire
|
|
|
|
import (
|
|
"bytes"
|
|
|
|
"github.com/lucas-clemente/quic-go/internal/protocol"
|
|
)
|
|
|
|
// A Frame in QUIC
|
|
type Frame interface {
|
|
Write(b *bytes.Buffer, version protocol.VersionNumber) error
|
|
Length(version protocol.VersionNumber) protocol.ByteCount
|
|
}
|
|
|
|
// A FrameParser parses QUIC frames, one by one.
|
|
type FrameParser interface {
|
|
ParseNext(r *bytes.Reader) (Frame, error)
|
|
}
|