brotli

package
v0.6.1019 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT, MIT Imports: 3 Imported by: 0

Documentation

Overview

Package brotli decodes the Brotli compressed data format (RFC 7932). It is the reader of github.com/andybalholm/brotli v1.2.6, which is released under the MIT licence (the LICENSE file beside this one), with the compressor left out. The runner image's build context carries no module dependencies, so the decoder is part of it rather than a module the build would fetch.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

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

func NewReader

func NewReader(src io.Reader) *Reader

NewReader creates a new Reader reading the given reader.

func (*Reader) Read

func (r *Reader) Read(p []byte) (n int, err error)

func (*Reader) Reset

func (r *Reader) Reset(src io.Reader) error

Reset discards the Reader's state and makes it equivalent to the result of its original state from NewReader, but reading from src instead. This permits reusing a Reader rather than allocating a new one. Error is always nil

Jump to

Keyboard shortcuts

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