buffer

package module
v0.0.0-...-b131a70 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: MIT Imports: 4 Imported by: 4

README

buffer

AFAIRE

Go Report Card Go Reference

Licence

MIT.


Copyright (c) 2021-2022 losyme

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 New

func New(bufSize int) *Buffer

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, bitSize int)

func (*Buffer) AppendInt

func (b *Buffer) AppendInt(value int64)

func (*Buffer) AppendLJString

func (b *Buffer) AppendLJString(s string, v byte, size int)

func (*Buffer) AppendRJString

func (b *Buffer) AppendRJString(s string, v byte, size int)

func (*Buffer) AppendString

func (b *Buffer) AppendString(value string)

func (*Buffer) AppendTime

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

func (*Buffer) Bytes

func (b *Buffer) Bytes() []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) Write

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

type Pool

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

func NewPool

func NewPool(bufSize int) *Pool

func (*Pool) Get

func (p *Pool) Get() *Buffer

func (*Pool) Put

func (p *Pool) Put(buf *Buffer)

Jump to

Keyboard shortcuts

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