crcfile

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Crc64Table = crc64.MakeTable(crc64.ECMA)
)

Functions

This section is empty.

Types

type Reader

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

func CreateReader

func CreateReader(r io.ReadCloser) *Reader

func (*Reader) Close

func (cr *Reader) Close() error

func (*Reader) Crc

func (cr *Reader) Crc() uint64

func (*Reader) FileSize

func (cr *Reader) FileSize() int

func (*Reader) Read

func (cr *Reader) Read(p []byte) (int, error)

type Writer

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

func CreateWriter

func CreateWriter(w io.WriteCloser) *Writer

func (*Writer) Close

func (cw *Writer) Close() error

func (*Writer) Crc

func (cw *Writer) Crc() uint64

func (*Writer) FileSize

func (cw *Writer) FileSize() int

func (*Writer) Write

func (cw *Writer) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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