pool

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 203

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBuf

func GetBuf(size int) []byte

func GetSnappyReader

func GetSnappyReader(r io.Reader) *snappy.Reader

func GetSnappyWriter

func GetSnappyWriter(w io.Writer) *snappy.Writer

func PutBuf

func PutBuf(buf []byte)

func PutSnappyReader

func PutSnappyReader(sr *snappy.Reader)

func PutSnappyWriter

func PutSnappyWriter(sw *snappy.Writer)

Types

type Buffer added in v0.5.0

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

func NewBuffer added in v0.5.0

func NewBuffer(size int) *Buffer

func (*Buffer) Get added in v0.5.0

func (p *Buffer) Get() []byte

func (*Buffer) Put added in v0.5.0

func (p *Buffer) Put(buf []byte)

Jump to

Keyboard shortcuts

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