Package crc64 implements the 64-bit cyclic redundancy check, or CRC-64, checksum. See https://en.wikipedia.org/wiki/Cyclic_redundancy_check for information.

Static methods

staticinlinechecksum(_data:Slice<GoUInt8>, _tab:Ref<Table>):GoUInt64

Checksum returns the CRC-64 checksum of data using the polynomial represented by the Table.

See also:

staticinlinemakeTable(_poly:GoUInt64):Ref<Table>

MakeTable returns a Table constructed from the specified polynomial. The contents of this Table must not be modified.

See also:

staticinlinenew_(_tab:Ref<Table>):Hash64

New creates a new hash.Hash64 computing the CRC-64 checksum using the polynomial represented by the Table. Its Sum method will lay the value out in big-endian byte order. The returned Hash64 also implements encoding.BinaryMarshaler and encoding.BinaryUnmarshaler to marshal and unmarshal the internal state of the hash.

See also:

staticinlineupdate(_crc:GoUInt64, _tab:Ref<Table>, _p:Slice<GoUInt8>):GoUInt64

Update returns the result of adding the bytes in p to the crc.

See also: