buffer

package
v0.0.0-...-3e7ea43 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 4 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 struct {
	// contains filtered or unexported fields
}

func (*Buffer) Append

func (b *Buffer) Append(values ...any)

func (*Buffer) AppendALString

func (b *Buffer) AppendALString(value string, v byte, size int)

func (*Buffer) AppendARString

func (b *Buffer) AppendARString(value string, v byte, size int)

func (*Buffer) AppendBool

func (b *Buffer) AppendBool(value bool)

func (*Buffer) AppendByte

func (b *Buffer) AppendByte(value byte)

func (*Buffer) AppendFloat

func (b *Buffer) AppendFloat(value float64, fmt byte, prec, bitSize int)

func (*Buffer) AppendInt

func (b *Buffer) AppendInt(value int64, base int)

func (*Buffer) AppendQuotedString

func (b *Buffer) AppendQuotedString(value string)

func (*Buffer) AppendString

func (b *Buffer) AppendString(value string)

func (*Buffer) AppendTime

func (b *Buffer) AppendTime(value time.Time, layout string)

func (*Buffer) AppendUint

func (b *Buffer) AppendUint(value uint64, base int)

func (*Buffer) Bytes

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

func (*Buffer) Cap

func (b *Buffer) Cap() int

func (*Buffer) Free

func (b *Buffer) Free()

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) Write

func (b *Buffer) Write(value []byte) (int, error)

func (*Buffer) WriteByte

func (b *Buffer) WriteByte(value byte) error

func (*Buffer) WriteString

func (b *Buffer) WriteString(value string) (int, error)

type Pool

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

func NewPool

func NewPool(size int) *Pool

func (*Pool) Get

func (p *Pool) Get() *Buffer

Jump to

Keyboard shortcuts

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