forked from quic-go/quic-go
add Frame.MaxLength and implement it for currently needed frames
This commit is contained in:
@@ -88,3 +88,8 @@ func (f *StreamFrame) Write(b *bytes.Buffer) error {
|
||||
b.Write(f.Data)
|
||||
return nil
|
||||
}
|
||||
|
||||
// MaxLength of a written frame
|
||||
func (f *StreamFrame) MaxLength() int {
|
||||
return 1 + 4 + 8 + 2 + 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user