blob: be354ff847facdf5ead66a305c1488df3c428249 [file] [log] [blame]
David K. Bainbridge215e0242017-09-05 23:18:24 -07001// 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.
4
5package socket
6
7func (h *msghdr) setIov(vs []iovec) {
8 h.Iov = &vs[0]
9 h.Iovlen = uint32(len(vs))
10}