buf

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buf

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

func NewBuf

func NewBuf() *Buf

func (*Buf) Cap

func (buf *Buf) Cap() int

func (*Buf) Free

func (buf *Buf) Free()

func (*Buf) Grow

func (buf *Buf) Grow(n int)

func (*Buf) Len

func (buf *Buf) Len() int

func (*Buf) Read

func (buf *Buf) Read(b []byte) (n int, err error)

func (*Buf) ReadFrom

func (buf *Buf) ReadFrom(r io.Reader) (n int64, err error)

func (*Buf) Reset

func (buf *Buf) Reset()

func (*Buf) ToBytes

func (buf *Buf) ToBytes(free ...bool) []byte

func (*Buf) ToColorBytes

func (buf *Buf) ToColorBytes(colors color.Colors, free ...bool) []byte

func (*Buf) ToColorString

func (buf *Buf) ToColorString(colors color.Colors, free ...bool) string

func (*Buf) ToString

func (buf *Buf) ToString(free ...bool) string

func (*Buf) Write

func (buf *Buf) Write(b []byte) (n int, err error)

func (*Buf) WriteByte

func (buf *Buf) WriteByte(b byte) *Buf

func (*Buf) WriteBytes

func (buf *Buf) WriteBytes(b []byte) *Buf

func (*Buf) WriteColor

func (buf *Buf) WriteColor(b any, colors ...color.Color) *Buf

func (*Buf) WriteRune

func (buf *Buf) WriteRune(r rune) *Buf

func (*Buf) WriteString

func (buf *Buf) WriteString(src string) *Buf

func (*Buf) WriteTo

func (buf *Buf) WriteTo(w io.Writer, free ...bool) (n int64, err error)

Jump to

Keyboard shortcuts

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