netpoll

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

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