crc

package
v0.0.0-...-3976360 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package crc computes masked CRC-32 checksum using Castagnoli's polynomial.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRC

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

CRC is a CRC-32 checksum computed using Castagnoli's polynomial.

func New

func New(b []byte) CRC

New computes checksum using given bytes.

func Update

func Update(c CRC, b []byte) CRC

Update updates checksum using given bytes.

func (CRC) String

func (c CRC) String() string

String implements fmt.Stringer.

func (CRC) Value

func (c CRC) Value() uint32

Value returns a masked checksum value.

Jump to

Keyboard shortcuts

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