buffer

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer []byte

Buffer is a single bytes buffer

func New

func New() *Buffer

New returns a new buffer

func (*Buffer) Bytes

func (b *Buffer) Bytes() []byte

func (*Buffer) Free

func (b *Buffer) Free()

func (*Buffer) Grow

func (b *Buffer) Grow(n int)

Grow buffer with n bytes If n is negative, then do nothing

func (*Buffer) LastByte

func (b *Buffer) LastByte() *byte

func (*Buffer) Len

func (b *Buffer) Len() int

func (*Buffer) Reset

func (b *Buffer) Reset()

func (*Buffer) String

func (b *Buffer) String() string

func (*Buffer) Truncate

func (b *Buffer) Truncate(n int)

Truncate buffer to n bytes If n is negative, then do nothing

func (*Buffer) Write

func (b *Buffer) Write(data []byte)

func (*Buffer) WriteByte

func (b *Buffer) WriteByte(c byte)

func (*Buffer) WriteRune

func (b *Buffer) WriteRune(r rune)

func (*Buffer) WriteString

func (b *Buffer) WriteString(str string)

Jump to

Keyboard shortcuts

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