添加readv功能;给出测试数据;修订代码,注释;

toml 新增 app.noreadv项,命令行参数新增 -readv

默认readv是打开状态,可以选择性关闭。
This commit is contained in:
hahahrfool
2022-03-22 14:12:32 +08:00
parent e75860ef7a
commit 5661c8737f
18 changed files with 715 additions and 51 deletions

View File

@@ -1,2 +1,9 @@
// Package utils provides utils that needed by all packages of verysimle
package utils
//具体实现见 readv_*.go
type MultiReader interface {
Init([][]byte)
Read(fd uintptr) int32
Clear()
}