Module: stdgo.hash.crc64
Overview
Index
-
function checksum(_data:Array<UInt>, _tab:stdgo.hash.crc64.Table):haxe.UInt64
-
function makeTable(_poly:haxe.UInt64):stdgo.hash.crc64.Table
-
function new_(_tab:stdgo.hash.crc64.Table):stdgo._internal.hash.Hash64
-
function update(_crc:haxe.UInt64, _tab:stdgo.hash.crc64.Table, _p:Array<UInt>):haxe.UInt64
Constants
import stdgo.hash.crc64.Crc64
final ecma:haxe.UInt64 = stdgo._internal.hash.crc64.Crc64_ecma.ecma
final iso:haxe.UInt64 = stdgo._internal.hash.crc64.Crc64_iso.iso
final size:haxe.UInt64 = stdgo._internal.hash.crc64.Crc64_size.size
Classes
import stdgo.hash.crc64.*
class Crc64
Package crc64 implements the 64-bit cyclic redundancy check, or CRC-64,
checksum. See https://en.wikipedia.org/wiki/Cyclic_redundancy_check for
information.
Crc64 function checksum
function checksum(_data:Array<UInt>, _tab:stdgo.hash.crc64.Table):haxe.UInt64
Checksum returns the CRC-64 checksum of data
using the polynomial represented by the Table.
Crc64 function makeTable
function makeTable(_poly:haxe.UInt64):stdgo.hash.crc64.Table
MakeTable returns a Table constructed from the specified polynomial.
The contents of this Table must not be modified.
Crc64 function new_
function new_(_tab:stdgo.hash.crc64.Table):stdgo._internal.hash.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.
Crc64 function update
function update(_crc:haxe.UInt64, _tab:stdgo.hash.crc64.Table, _p:Array<UInt>):haxe.UInt64
Update returns the result of adding the bytes in p to the crc.
Typedefs
import stdgo.hash.crc64.*
typedef Table
typedef Table = stdgo._internal.hash.crc64.Table;