github.com/sagernet/sing@v0.4.0-beta.19.0.20240518125136-f67a0988a636/common/network/vectorised.go (about)

     1  package network
     2  
     3  import (
     4  	"github.com/sagernet/sing/common/buf"
     5  	M "github.com/sagernet/sing/common/metadata"
     6  )
     7  
     8  type VectorisedWriter interface {
     9  	WriteVectorised(buffers []*buf.Buffer) error
    10  }
    11  
    12  type VectorisedPacketWriter interface {
    13  	WriteVectorisedPacket(buffers []*buf.Buffer, destination M.Socksaddr) error
    14  }