brotli

package
v2.0.0-...-288f5f8 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() compress.Interface

Initialize a new Brotli object based on the Interface interface

Types

type Brotli

type Brotli struct{}

func (Brotli) Decode

func (b Brotli) Decode(v *bytes.Buffer)

The Decode method will first decode and then overwrite the data in the input *bytes.Buffer.

func (Brotli) Encode

func (b Brotli) Encode(v []byte) (*bytes.Buffer, error)

Encode compresses the given bytes using brotli compression, returning the compressed data in a new bytes.Buffer.

Jump to

Keyboard shortcuts

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