vecnet

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package vecnet provides access to recvmsg syscalls on net.Conns.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffers

type Buffers net.Buffers

Buffers points to zero or more buffers to read into.

On connections that support it, ReadFrom is optimized into the batch read operation recvmsg.

func (Buffers) ReadFrom

func (bufs Buffers) ReadFrom(r io.Reader) (int64, error)

ReadFrom reads into the pre-allocated bufs. Returns bytes read.

ReadFrom keeps reading until all bufs are filled or EOF is received.

The pre-allocatted space used by ReadFrom is based upon slice lengths.

Jump to

Keyboard shortcuts

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