Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewIEEE (0.09 sec)

  1. src/hash/crc32/crc32.go

    	}
    	return &digest{0, tab}
    }
    
    // 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.
    func NewIEEE() hash.Hash32 { return New(IEEETable) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. src/hash/marshal_test.go

    var marshalTests = []struct {
    	name   string
    	new    func() hash.Hash
    	golden []byte
    }{
    	{"adler32", func() hash.Hash { return adler32.New() }, fromHex("61646c01460a789d")},
    	{"crc32", func() hash.Hash { return crc32.NewIEEE() }, fromHex("63726301ca87914dc956d3e8")},
    	{"crc64", func() hash.Hash { return crc64.New(crc64.MakeTable(crc64.ISO)) }, fromHex("6372630273ba8484bbcd5def5d51c83c581695be")},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 07:45:46 UTC 2017
    - 5.4K bytes
    - Viewed (0)
Back to top