deflate

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package deflate provides binary data compression via the DEFLATE algorithm.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inflate

func Inflate(c *Compressed) ([]byte, error)

Inflate inflates a blob of data

Types

type Compressed

type Compressed struct {
	Data             []byte
	UncompressedSize int
}

Compressed stores deflated data and the original size of the blob before compression.

func Deflate

func Deflate(data io.Reader) (*Compressed, error)

Deflate deflates a blob of data

Jump to

Keyboard shortcuts

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