decompress

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File

func File(path string, opts ...FileOption) (io.ReadCloser, error)

Types

type FileOption

type FileOption func(f *file)

func WithHash

func WithHash(h hash.Hash) FileOption

func WithOpenHash

func WithOpenHash(oh hash.Hash) FileOption

type HashBuffer

type HashBuffer struct {
	hash.Hash
	// contains filtered or unexported fields
}

func NewHashBuffer

func NewHashBuffer(h hash.Hash, buffer *bytes.Buffer) *HashBuffer

func (*HashBuffer) Bytes

func (hb *HashBuffer) Bytes() []byte

func (*HashBuffer) BytesRead

func (hb *HashBuffer) BytesRead() int64

func (*HashBuffer) Hex

func (hb *HashBuffer) Hex() string

func (*HashBuffer) Reset

func (hb *HashBuffer) Reset()

func (*HashBuffer) Write

func (hb *HashBuffer) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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