refactor frame parsing into a separate struct

This commit is contained in:
Marten Seemann
2019-01-07 14:17:31 +07:00
parent f0f45e80f9
commit 741521c4d1
5 changed files with 69 additions and 48 deletions

View File

@@ -1,13 +0,0 @@
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
}