mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 04:07:35 +03:00
rename frame.Write to frame.Append
This commit is contained in:
parent
3ca1001951
commit
ab6d664b43
50 changed files with 112 additions and 112 deletions
|
@ -252,7 +252,7 @@ func getFrames() []wire.Frame {
|
|||
|
||||
func main() {
|
||||
for _, f := range getFrames() {
|
||||
b, err := f.Write(nil, version)
|
||||
b, err := f.Append(nil, version)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
@ -271,7 +271,7 @@ func main() {
|
|||
}
|
||||
f := frames[rand.Intn(len(frames))]
|
||||
var err error
|
||||
b, err = f.Write(b, version)
|
||||
b, err = f.Append(b, version)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
|
|
@ -69,7 +69,7 @@ func Fuzz(data []byte) int {
|
|||
}
|
||||
}
|
||||
lenBefore := len(b)
|
||||
b, err := f.Write(b, version)
|
||||
b, err := f.Append(b, version)
|
||||
if err != nil {
|
||||
panic(fmt.Sprintf("Error writing frame %#v: %s", f, err))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue