Documentation ¶
Overview ¶
Package systype provides system type such as unix.Ioves. Reuses [][]byte and []MMsghdr.
Index ¶
Constants ¶
View Source
const (
// MaxLen is the maximum length for []unix.Iovec, [][]byte, []MMsghdr.
MaxLen = 64
)
Variables ¶
This section is empty.
Functions ¶
func PutIOVECWrapper ¶
func PutIOVECWrapper(h *IOVECWrapper)
PutIOVECWrapper release a []unix.Iovec.
Types ¶
type IOVECWrapper ¶
type IOVECWrapper struct {
// contains filtered or unexported fields
}
IOVECWrapper is a wrapper for []unix.Iovec struct.
func GetIOVECWrapper ¶
func GetIOVECWrapper(bs [][]byte) ([]unix.Iovec, *IOVECWrapper)
GetIOVECWrapper gets a []unix.Iovec with fixed capacity of length len(bs). Release it using PutIOVECWrapper.
Click to show internal directories.
Click to hide internal directories.