fdbased test

This commit is contained in:
impact-eintr
2022-11-23 15:41:57 +08:00
parent 990a0c2901
commit 8f1e045cfc
4 changed files with 218 additions and 12 deletions

View File

@@ -28,5 +28,5 @@ func (p *Prependable) Prepend(size int) []byte {
return nil
}
p.usedIdx -= size
return p.View()[:size:size] // p.buf[p.usedIdx:size:size]
return p.View()[:size:size] // p.buf[p.usedIdx:p.usedIdx+size:size]
}