rwhasher

package
v1.24.10 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRC32Reader

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

func NewCRC32Reader

func NewCRC32Reader(r io.Reader) *CRC32Reader

func (*CRC32Reader) Hash

func (rc *CRC32Reader) Hash() []byte

func (*CRC32Reader) N

func (rc *CRC32Reader) N() int

func (*CRC32Reader) Read

func (rc *CRC32Reader) Read(p []byte) (n int, err error)

func (*CRC32Reader) Reset

func (rc *CRC32Reader) Reset()

type CRC32Writer

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

func NewCRC32Writer

func NewCRC32Writer(w io.Writer) *CRC32Writer

func (*CRC32Writer) Hash

func (wc *CRC32Writer) Hash() []byte

func (*CRC32Writer) N

func (wc *CRC32Writer) N() int

func (*CRC32Writer) Reset

func (wc *CRC32Writer) Reset()

func (*CRC32Writer) Write

func (wc *CRC32Writer) Write(p []byte) (n int, err error)

type ReaderHasher

type ReaderHasher interface {
	io.Reader
	N() int
	Hash() []byte
	Reset()
}

type WriterHasher

type WriterHasher interface {
	io.Writer
	N() int
	Hash() []byte
	Reset()
}

Jump to

Keyboard shortcuts

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