netpoll

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2026 License: Apache-2.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetpollDirectWriter

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

NetpollDirectWriter implements NocopyWriter for fastcodec.

It's only used for testing purposes, see the WriteDirect implementation of netpoll.Writer for details.

func (*NetpollDirectWriter) Bytes

func (p *NetpollDirectWriter) Bytes() []byte

Bytes returns the actual result of FastWriteNocopy

func (*NetpollDirectWriter) Malloc

func (p *NetpollDirectWriter) Malloc(n int) []byte

Malloc creates a new buffer for FastWriteNocopy

func (*NetpollDirectWriter) WriteDirect

func (p *NetpollDirectWriter) WriteDirect(b []byte, remainCap int) error

WriteDirect implements NocopyWriter for fastcodec

func (*NetpollDirectWriter) WriteDirectN

func (p *NetpollDirectWriter) WriteDirectN() int

WriteDirectN returns how many times WriteDirect called

Jump to

Keyboard shortcuts

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