go2hx

manual

github

Module: stdgo.hash.crc32

(view library index)

Overview

Index

Constants

import stdgo.hash.crc32.Crc32
final castagnoli:haxe.UInt64 = stdgo._internal.hash.crc32.Crc32_castagnoli.castagnoli
final ieee:haxe.UInt64 = stdgo._internal.hash.crc32.Crc32_ieee.ieee
final koopman:haxe.UInt64 = stdgo._internal.hash.crc32.Crc32_koopman.koopman
final size:haxe.UInt64 = stdgo._internal.hash.crc32.Crc32_size.size

Variables

import stdgo.hash.crc32.Crc32
var ieeetable:stdgo.hash.crc32.Table

Classes

import stdgo.hash.crc32.*

class Crc32

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

Polynomials are represented in LSB-first form also known as reversed representation.

See https://en.wikipedia.org/wiki/Mathematics_of_cyclic_redundancy_checks#Reversed_representations_and_reciprocal_polynomials for information.

Crc32 function checksum

function checksum(_data:Array<UInt>, _tab:stdgo.hash.crc32.Table):UInt
Checksum returns the CRC-32 checksum of data
        using the polynomial represented by the Table.

(view code)

Crc32 function checksumIEEE

function checksumIEEE(_data:Array<UInt>):UInt
ChecksumIEEE returns the CRC-32 checksum of data
        using the IEEE polynomial.

(view code)

Crc32 function makeTable

function makeTable(_poly:UInt):stdgo.hash.crc32.Table
MakeTable returns a Table constructed from the specified polynomial.
        The contents of this Table must not be modified.

(view code)

Crc32 function newIEEE

function newIEEE():stdgo._internal.hash.Hash32
NewIEEE creates a new hash.Hash32 computing the CRC-32 checksum using
        the IEEE polynomial. Its Sum method will lay the value out in
        big-endian byte order. The returned Hash32 also implements
        encoding.BinaryMarshaler and encoding.BinaryUnmarshaler to marshal
        and unmarshal the internal state of the hash.

(view code)

Crc32 function new_

function new_(_tab:stdgo.hash.crc32.Table):stdgo._internal.hash.Hash32
New creates a new hash.Hash32 computing the CRC-32 checksum using the
        polynomial represented by the Table. Its Sum method will lay the
        value out in big-endian byte order. The returned Hash32 also
        implements encoding.BinaryMarshaler and encoding.BinaryUnmarshaler to
        marshal and unmarshal the internal state of the hash.

(view code)

Crc32 function update

function update(_crc:UInt, _tab:stdgo.hash.crc32.Table, _p:Array<UInt>):UInt

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

(view code)

Typedefs

import stdgo.hash.crc32.*

typedef T_slicing8Table

typedef T_slicing8Table = stdgo._internal.hash.crc32.T_slicing8Table;

typedef Table

typedef Table = stdgo._internal.hash.crc32.Table;

Abstracts

abstract T_digest

(view file containing code)