linkedbuffer

package module
v0.0.0-...-10ed0b5 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: MIT Imports: 4 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.

README

fastbuffer

a thread-safe faster buffer for Go

GitHub Go Reference Go Report Card Go GitHub go.mod Go version (branch)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

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

func (*Buffer) Discard

func (r *Buffer) Discard(n uint) (discarded uint, err error)

func (*Buffer) Flush

func (r *Buffer) Flush()

func (*Buffer) Len

func (r *Buffer) Len() uint

func (*Buffer) Peek

func (r *Buffer) Peek(dst []byte) (int, error)

func (*Buffer) Pull

func (r *Buffer) Pull() ([]byte, error)

func (*Buffer) Push

func (r *Buffer) Push(data []byte) error

func (*Buffer) Read

func (r *Buffer) Read(dst []byte) (int, error)

func (*Buffer) Write

func (r *Buffer) Write(src []byte) (n int, err error)

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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