<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # package crc32 `import "hash/crc32"` crc32包實現了32位循環冗余校驗(CRC-32)的校驗和算法,參見: [http://en.wikipedia.org/wiki/Cyclic_redundancy_check](http://en.wikipedia.org/wiki/Cyclic_redundancy_check) ## Index * [Constants](#pkg-constants) * [Variables](#pkg-variables) * [type Table](#Table) * [func MakeTable(poly uint32) \*Table](#MakeTable) * [func Checksum(data []byte, tab \*Table) uint32](#Checksum) * [func ChecksumIEEE(data []byte) uint32](#ChecksumIEEE) * [func Update(crc uint32, tab \*Table, p []byte) uint32](#Update) * [func New(tab \*Table) hash.Hash32](#New) * [func NewIEEE() hash.Hash32](#NewIEEE) ## Constants ``` const ( // 最常用的CRC-32多項式;用于以太網、v.42、fddi、gzip、zip、png、mpeg-2…… IEEE = 0xedb88320 // 卡斯塔尼奧利多項式,用在iSCSI;有比IEEE更好的錯誤探測特性 // http://dx.doi.org/10.1109/26.231911 Castagnoli = 0x82f63b78 // 庫普曼多項式;錯誤探測特性也比IEEE好 // http://dx.doi.org/10.1109/DSN.2002.1028931 Koopman = 0xeb31d82e ) ``` 預定義的多項式。 ``` const Size = 4 ``` CRC-32校驗和的字節長度。 ## Variables ``` var IEEETable = MakeTable(IEEE) ``` IEEETable是IEEE多項式對應的Table。 ## type [Table](https://github.com/golang/go/blob/master/src/hash/crc32/crc32.go#L36 "View Source") ``` type Table [256]uint32 ``` 長度256的uint32切片,代表一個用于高效運作的多項式。 ### func [MakeTable](https://github.com/golang/go/blob/master/src/hash/crc32/crc32.go#L53 "View Source") ``` func MakeTable(poly uint32) *Table ``` 返回一個代表poly指定的多項式的Table。 ## func [Checksum](https://github.com/golang/go/blob/master/src/hash/crc32/crc32.go#L131 "View Source") ``` func Checksum(data []byte, tab *Table) uint32 ``` 返回數據data使用tab代表的多項式計算出的CRC-32校驗和。 ## func [ChecksumIEEE](https://github.com/golang/go/blob/master/src/hash/crc32/crc32.go#L135 "View Source") ``` func ChecksumIEEE(data []byte) uint32 ``` 返回數據data使用IEEE多項式計算出的CRC-32校驗和。 ## func [Update](https://github.com/golang/go/blob/master/src/hash/crc32/crc32.go#L110 "View Source") ``` func Update(crc uint32, tab *Table, p []byte) uint32 ``` 返回將切片p的數據采用tab表示的多項式添加到crc之后計算出的新校驗和。 ## func [New](https://github.com/golang/go/blob/master/src/hash/crc32/crc32.go#L89 "View Source") ``` func New(tab *Table) hash.Hash32 ``` 創建一個使用tab代表的多項式計算CRC-32校驗和的hash.Hash32接口。 ## func [NewIEEE](https://github.com/golang/go/blob/master/src/hash/crc32/crc32.go#L93 "View Source") ``` func NewIEEE() hash.Hash32 ``` 創建一個使用IEEE多項式計算CRC-32校驗和的hash.Hash32接口。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看