1 // Copyright 2017 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
12 func (h *msghdr) pack(vs []iovec, bs [][]byte, oob []byte, sa []byte) {
17 h.Iovlen = int32(len(vs))
19 h.Accrights = (*int8)(unsafe.Pointer(&oob[0]))
20 h.Accrightslen = int32(len(oob))
23 h.Name = (*byte)(unsafe.Pointer(&sa[0]))
24 h.Namelen = uint32(len(sa))
28 func (h *msghdr) controllen() int {
29 return int(h.Accrightslen)
32 func (h *msghdr) flags() int {
33 return int(NativeEndian.Uint32(h.Pad_cgo_2[:]))