gzippool

package
v0.0.0-...-202847b Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2023 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Overview

Package gzippool provides pooled gzip reader and writers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetReader

func GetReader(r io.Reader) *gzip.Reader

GetReader returns a new gzip reader for decompression.

func GetWriter

func GetWriter(w io.Writer) *gzip.Writer

Get returns a buffer from the pool.

func PutReader

func PutReader(zr *gzip.Reader)

PutReader returns a reader to the pool.

func PutWriter

func PutWriter(zw *gzip.Writer)

PutWriter returns a gzip writer to the pool, after writing and closes the writer to flush all the data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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