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

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