PHP Learning Series (1)--String processing function (3), PHP function 11, CRC32 () function computes the crc32 polynomial of a string. A 32-bit cyclic redundancy check code polynomial that generates a string parameter. This function can be used to
CRC32 Introduction
CRC Verification Utility Library in the field of data storage and data communication, in order to ensure the correct data, we have to use the means of error detection. CRC is one of the most famous in many error detection methods.
Note: This article reprinted http://www.manongjc.com/article/499.html
The PHP crc32 function is used to generate a string of 32-bit cyclic redundancy check code polynomial. This is typically used to check the integrity of the data being transmitted.
Network checksum Calculation
1. Preface
Checksum calculation is the basic function of NAT and content modification. After performing these operations, you must modify the checksum in the Data header.
2. 16-bit checksum Calculation
2.1 Basic
First, IntroductionPt-table-checksum is one of the Percona-toolkit series tools that can be used to detect the consistency of the data in the master and from the database. The principle is to run on the main library, checksum the synchronized tables
#include #include #include /*static*/unsigned long crc32_computebuf (unsigned long inCrc32, const void *BUF,int buflen);size_t Buflen);int main (void){unsigned long crc32 = 0;//------------------------Two sets of tests were used, one to pass only
First, IntroductionPt-table-checksum is one of the Percona-toolkit series tools that can be used to detect the consistency of the data in the master and from the database. The principle is to run on the Main library, checksum the synchronized tables
Php crc32 calculates the 32-bit CRC (cyclic redundancy check) and crc32crc of the string.
Note: This article reprinted http://www.manongjc.com/article/499.html
The php crc32 function is used to generate a 32-bit Cyclic Redundancy checkcode
Packet in the network transmission must be considered in case of data corruption, CRC32 and Adler32 are the most commonly used algorithms.Both go and Android are built into the implementation of these two algorithms, and the direct use is good.The
http://supp.iar.com/Support/?note=64424&from=note+11927BackgroundThe STM32 devices from ST Micro has a built-in hardware CRC32 calculator. (So using CRC32 in a application does not use up code space for the algorithm.)ProblemThe CRC32 algorithm used
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.