//
pkg.gl
Category
github.com/pingcap/tidb
pkg
util
checksum
package
9.0.0-alpha+incompatible
Repository:
https://github.com/pingcap/tidb.git
Documentation:
pkg.go.dev
Versions
3
Dependencies
5
Dependents
3
Files
133 SLOC
#
Functions
NewReader
NewReader returns a new Reader which can read from the input source after verifying the checksum.
NewWriter
NewWriter returns a new Writer which calculates and stores a CRC-32 checksum for the payload before writing to the underlying object.
#
Structs
Reader
Reader implements an io.ReadAt, reading from the input source after verifying the checksum.
Writer
Writer implements an io.WriteCloser, it calculates and stores a CRC-32 checksum for the payload before writing to the underlying object.