buf

package
v1.19.33-clash.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: GPL-3.0 Imports: 1 Imported by: ? 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

View Source
const BufferSize = buf.BufferSize

Variables

This section is empty.

Functions

func Error

func Error(_ any, err error) error

func Must

func Must(errs ...error)

func Must1

func Must1[T any](result T, err error) T

func Must2

func Must2[T any, T2 any](result T, result2 T2, err error) (T, T2)

func ReleaseMulti

func ReleaseMulti(buffers []*Buffer)

Types

type Buffer

type Buffer = buf.Buffer

func As

func As(data []byte) *Buffer

func New

func New() *Buffer

func NewPacket

func NewPacket() *Buffer

func NewSize

func NewSize(size int) *Buffer

func With

func With(data []byte) *Buffer

Jump to

Keyboard shortcuts

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