sing/common/network/vectorised.go
2022-08-12 16:21:20 +08:00

14 lines
316 B
Go

package network
import (
"github.com/sagernet/sing/common/buf"
M "github.com/sagernet/sing/common/metadata"
)
type VectorisedWriter interface {
WriteVectorised(buffers []*buf.Buffer) error
}
type VectorisedPacketWriter interface {
WriteVectorisedPacket(buffers []*buf.Buffer, destination M.Socksaddr) error
}