iovec

package
v0.0.0-...-ff2c174 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2021 License: Apache-2.0, MIT Imports: 0 Imported by: 0

Documentation

Overview

Package iovec provides helpers to interact with vectorized I/O on host system.

Index

Constants

This section is empty.

Variables

View Source
var MaxIovs = 1024

MaxIovs is the maximum number of iovecs host platform can accept.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder is a builder for slice of unix.Iovec.

func (*Builder) Add

func (b *Builder) Add(buf []byte)

Add adds buf to b preparing to be written. Zero-length buf won't be added.

func (*Builder) Build

func (b *Builder) Build() []unix.Iovec

Build returns the final Iovec slice. The length of returned iovec will not excceed MaxIovs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL