mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-04 12:27:37 +03:00
Fix writev func
This commit is contained in:
parent
8843420c78
commit
3e39af6035
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ import (
|
|||
"unsafe"
|
||||
)
|
||||
|
||||
func WriteV(fd uintptr, data ...[]byte) (int, error) {
|
||||
func WriteV(fd uintptr, data [][]byte) (int, error) {
|
||||
iovecs := make([]syscall.Iovec, len(data))
|
||||
for i := range iovecs {
|
||||
iovecs[i].Base = &data[i][0]
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"syscall"
|
||||
)
|
||||
|
||||
func WriteV(fd uintptr, data ...[]byte) (int, error) {
|
||||
func WriteV(fd uintptr, data [][]byte) (int, error) {
|
||||
var n uint32
|
||||
buffers := make([]*syscall.WSABuf, len(data))
|
||||
for i, buf := range data {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue