fastbuffer

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 1 Imported by: 1 module, 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 FastBuffer

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

func New

func New() *FastBuffer

func (*FastBuffer) Bytes

func (f *FastBuffer) Bytes() []byte

func (*FastBuffer) Grow

func (f *FastBuffer) Grow(n int)

Grow increases the buffer capacity to be able to hold at least n more bytes

func (*FastBuffer) Len

func (f *FastBuffer) Len() int

func (*FastBuffer) Reset

func (f *FastBuffer) Reset()

func (*FastBuffer) Reslice

func (f *FastBuffer) Reslice(start, end int)

func (*FastBuffer) String

func (f *FastBuffer) String() string

func (*FastBuffer) UnsafeString

func (f *FastBuffer) UnsafeString() string

func (*FastBuffer) Write

func (f *FastBuffer) Write(p []byte) (n int, err error)

func (*FastBuffer) WriteBytes

func (f *FastBuffer) WriteBytes(b []byte)

func (*FastBuffer) WriteString

func (f *FastBuffer) WriteString(s string)

Jump to

Keyboard shortcuts

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