mirror of
https://github.com/golang/sys.git
synced 2026-02-08 19:56:04 +03:00
unix: Add SetBase for IovecRemote
This is needed to portably set Base without platform-specific code.
This commit is contained in:
committed by
Tadeo Kondrak
parent
07e4a4840b
commit
def9a9ee0d
@@ -380,6 +380,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
||||
func (iov *IovecRemote) SetBase(length uintptr) {
|
||||
iov.Base = uint32(length)
|
||||
}
|
||||
|
||||
func (iov *IovecRemote) SetLen(length int) {
|
||||
iov.Len = uint32(length)
|
||||
}
|
||||
|
||||
@@ -171,6 +171,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint64(length)
|
||||
}
|
||||
|
||||
func (iov *IovecRemote) SetBase(length uintptr) {
|
||||
iov.Base = uint64(length)
|
||||
}
|
||||
|
||||
func (iov *IovecRemote) SetLen(length int) {
|
||||
iov.Len = uint64(length)
|
||||
}
|
||||
|
||||
@@ -260,6 +260,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
||||
func (iov *IovecRemote) SetBase(length uintptr) {
|
||||
iov.Base = uint32(length)
|
||||
}
|
||||
|
||||
func (iov *IovecRemote) SetLen(length int) {
|
||||
iov.Len = uint32(length)
|
||||
}
|
||||
|
||||
@@ -206,6 +206,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint64(length)
|
||||
}
|
||||
|
||||
func (iov *IovecRemote) SetBase(length uintptr) {
|
||||
iov.Base = uint64(length)
|
||||
}
|
||||
|
||||
func (iov *IovecRemote) SetLen(length int) {
|
||||
iov.Len = uint64(length)
|
||||
}
|
||||
|
||||
@@ -216,6 +216,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint64(length)
|
||||
}
|
||||
|
||||
func (iov *IovecRemote) SetBase(length uintptr) {
|
||||
iov.Base = uint64(length)
|
||||
}
|
||||
|
||||
func (iov *IovecRemote) SetLen(length int) {
|
||||
iov.Len = uint64(length)
|
||||
}
|
||||
|
||||
@@ -228,6 +228,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
||||
func (iov *IovecRemote) SetBase(length uintptr) {
|
||||
iov.Base = uint32(length)
|
||||
}
|
||||
|
||||
func (iov *IovecRemote) SetLen(length int) {
|
||||
iov.Len = uint32(length)
|
||||
}
|
||||
|
||||
@@ -99,6 +99,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint64(length)
|
||||
}
|
||||
|
||||
func (iov *IovecRemote) SetBase(length uintptr) {
|
||||
iov.Base = uint64(length)
|
||||
}
|
||||
|
||||
func (iov *IovecRemote) SetLen(length int) {
|
||||
iov.Len = uint64(length)
|
||||
}
|
||||
|
||||
@@ -187,6 +187,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint64(length)
|
||||
}
|
||||
|
||||
func (iov *IovecRemote) SetBase(length uintptr) {
|
||||
iov.Base = uint64(length)
|
||||
}
|
||||
|
||||
func (iov *IovecRemote) SetLen(length int) {
|
||||
iov.Len = uint64(length)
|
||||
}
|
||||
|
||||
@@ -128,6 +128,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint64(length)
|
||||
}
|
||||
|
||||
func (iov *IovecRemote) SetBase(length uintptr) {
|
||||
iov.Base = uint64(length)
|
||||
}
|
||||
|
||||
func (iov *IovecRemote) SetLen(length int) {
|
||||
iov.Len = uint64(length)
|
||||
}
|
||||
|
||||
@@ -115,6 +115,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint64(length)
|
||||
}
|
||||
|
||||
func (iov *IovecRemote) SetBase(length uintptr) {
|
||||
iov.Base = uint64(length)
|
||||
}
|
||||
|
||||
func (iov *IovecRemote) SetLen(length int) {
|
||||
iov.Len = uint64(length)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user