forked from quic-go/quic-go
implement parsing and writing of the new STREAM frames
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package wire
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
||||
"github.com/lucas-clemente/quic-go/internal/protocol"
|
||||
"github.com/lucas-clemente/quic-go/internal/utils"
|
||||
. "github.com/onsi/ginkgo"
|
||||
@@ -21,6 +23,12 @@ const (
|
||||
versionIETFFrames = protocol.VersionTLS
|
||||
)
|
||||
|
||||
func encodeVarInt(i uint64) []byte {
|
||||
b := &bytes.Buffer{}
|
||||
utils.WriteVarInt(b, i)
|
||||
return b.Bytes()
|
||||
}
|
||||
|
||||
var _ = BeforeSuite(func() {
|
||||
Expect(utils.GetByteOrder(versionBigEndian)).To(Equal(utils.BigEndian))
|
||||
Expect(utils.GetByteOrder(versionIETFFrames)).To(Equal(utils.BigEndian))
|
||||
|
||||
Reference in New Issue
Block a user