pool

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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

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

func NewBuffer

func NewBuffer(size int) *Buffer

func (*Buffer) Get

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

func (*Buffer) Put

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

Jump to

Keyboard shortcuts

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