ToolsBuffer

package
v0.0.0-...-332b391 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: BSD-3-Clause 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 {
	bytes.Buffer
}

func (*Buffer) ReadFloat32

func (b *Buffer) ReadFloat32(BigEndian bool) (Result float32)

func (*Buffer) ReadFloat64

func (b *Buffer) ReadFloat64(BigEndian bool) (Result float64)

func (*Buffer) ReadInt16

func (b *Buffer) ReadInt16(BigEndian bool) (Result int16)

func (*Buffer) ReadInt32

func (b *Buffer) ReadInt32(BigEndian bool) (Result int32)

func (*Buffer) ReadInt64

func (b *Buffer) ReadInt64(BigEndian bool) (Result int64)

func (*Buffer) ReadInt8

func (b *Buffer) ReadInt8(BigEndian bool) (Result int8)

func (*Buffer) ReadRune

func (b *Buffer) ReadRune() (Result []rune)

func (*Buffer) ReadString

func (b *Buffer) ReadString() (Result string)

func (*Buffer) WriteFloat32

func (b *Buffer) WriteFloat32(v float32, BigEndian bool)

func (*Buffer) WriteFloat64

func (b *Buffer) WriteFloat64(v float64, BigEndian bool)

func (*Buffer) WriteInt16

func (b *Buffer) WriteInt16(v int16, BigEndian bool)

func (*Buffer) WriteInt32

func (b *Buffer) WriteInt32(v int32, BigEndian bool)

func (*Buffer) WriteInt64

func (b *Buffer) WriteInt64(v int64, BigEndian bool)

func (*Buffer) WriteInt8

func (b *Buffer) WriteInt8(v int8, BigEndian bool)

func (*Buffer) WriteRune

func (b *Buffer) WriteRune(v []rune)

func (*Buffer) WriteString

func (b *Buffer) WriteString(v string)

type LimitedPool

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

func NewLimitedPool

func NewLimitedPool(minSize, maxSize int) *LimitedPool

func (*LimitedPool) Get

func (p *LimitedPool) Get(size int) *[]byte

func (*LimitedPool) Put

func (p *LimitedPool) Put(b *[]byte)

Jump to

Keyboard shortcuts

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