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

staticinlinebenchmarkCrc64(_b:Ref<B>):Void

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

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

staticinlinemakeTable(_poly:GoUInt64):Ref<Table>

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

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.

staticinlinetestGolden(_t:Ref<T_>):Void

staticinlinetestGoldenMarshal(_t:Ref<T_>):Void

staticinlinetestMarshalTableMismatch(_t:Ref<T_>):Void

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

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