buffer

package module
v0.0.0-...-25205d3 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 4 Imported by: 2

README

buffer


Copyright (c) 2024 Archivage Numérique

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

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

func (*Buffer) AppendARString

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

func (*Buffer) AppendBool

func (b *Buffer) AppendBool(v bool)

func (*Buffer) AppendByte

func (b *Buffer) AppendByte(v byte)

func (*Buffer) AppendError

func (b *Buffer) AppendError(err error)

func (*Buffer) AppendFloat

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

func (*Buffer) AppendInt

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

func (*Buffer) AppendString

func (b *Buffer) AppendString(s string)

func (*Buffer) AppendTime

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

func (*Buffer) AppendUint

func (b *Buffer) AppendUint(v 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(bs []byte) (int, error)

func (*Buffer) WriteByte

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

func (*Buffer) WriteString

func (b *Buffer) WriteString(s 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