Namespace: go.std.hash.crc64
v1.0Contents
Summary
Provides a low-level interface to the hash/crc64 package.
Package crc64 implements the 64-bit cyclic redundancy check, or CRC-64,
checksum. See https://en.wikipedia.org/wiki/Cyclic_redundancy_check for
information.
Index
Legend
-
Constant
Variable
Function
Macro
Special form
Type
GoVar
Receiver/Method
Constants
Constants are variables with :const true in their metadata. Joker currently does not recognize them as special; as such, it allows redefining them or their values.-
ECMA
Number v1.0The ECMA polynomial, defined in ECMA 182.
-
ISO
Number v1.0The ISO polynomial, defined in ISO 3309 and used in HDLC.
-
Size
Int v1.0The size of a CRC-64 checksum in bytes.
Variables
-
(None.)
Functions, Macros, and Special Forms
-
Checksum
Function v1.0(Checksum data tab)
Checksum returns the CRC-64 checksum of data
using the polynomial represented by the Table.
Go input arguments: (data []byte, tab *Table)
Go returns: uint64
Joker input arguments: [^arrayOfByte data, ^*Table tab]
Joker returns: ^Number -
MakeTable
Function v1.0(MakeTable poly)
MakeTable returns a Table constructed from the specified polynomial.
The contents of this Table must not be modified.
Go input arguments: (poly uint64)
Go returns: *Table
Joker input arguments: [^Number poly]
Joker returns: ^*Table -
New
Function v1.0(New tab)
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.
Go input arguments: (tab *Table)
Go returns: hash.Hash64
Joker input arguments: [^*Table tab]
Joker returns: ^go.std.hash/Hash64 -
Update
Function v1.0(Update crc tab p)
Update returns the result of adding the bytes in p to the crc.
Go input arguments: (crc uint64, tab *Table, p []byte)
Go returns: uint64
Joker input arguments: [^Number crc, ^*Table tab, ^arrayOfByte p]
Joker returns: ^Number
Types
-
*Table
Concrete Type v1.0Table is a 256-word table representing the polynomial for efficient processing.
-
Table
Concrete Type v1.0Table is a 256-word table representing the polynomial for efficient processing.
-
arrayOfTable
Concrete Type v1.0Table is a 256-word table representing the polynomial for efficient processing.