buffer

package module
v0.0.0-...-5dc7a7b Latest Latest
Warning

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

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

README

buffer

A FAIRE.

Licence

MIT.


Copyright (c) 2021 mls-361.

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
}

Buffer AFAIRE.

func New

func New(bufSize int) *Buffer

New AFAIRE.

func (*Buffer) AppendBool

func (b *Buffer) AppendBool(value bool)

AppendBool AFAIRE.

func (*Buffer) AppendByte

func (b *Buffer) AppendByte(value byte)

AppendByte AFAIRE.

func (*Buffer) AppendFloat

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

AppendFloat AFAIRE.

func (*Buffer) AppendInt

func (b *Buffer) AppendInt(value int64)

AppendInt AFAIRE.

func (*Buffer) AppendLJString

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

AppendLJString AFAIRE.

func (*Buffer) AppendRJString

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

AppendRJString AFAIRE.

func (*Buffer) AppendString

func (b *Buffer) AppendString(value string)

AppendString AFAIRE.

func (*Buffer) AppendTime

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

AppendTime AFAIRE.

func (*Buffer) Bytes

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

Bytes AFAIRE.

func (*Buffer) Len

func (b *Buffer) Len() int

Len AFAIRE.

func (*Buffer) Reset

func (b *Buffer) Reset()

Reset AFAIRE.

func (*Buffer) String

func (b *Buffer) String() string

String AFAIRE.

func (*Buffer) Write

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

Write AFAIRE.

type Pool

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

Pool AFAIRE.

func NewPool

func NewPool(bufSize int) *Pool

NewPool AFAIRE.

func (*Pool) Get

func (p *Pool) Get() *Buffer

Get AFAIRE.

func (*Pool) Put

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

Put AFAIRE.

Jump to

Keyboard shortcuts

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