Python 2.7 has reached end of support
and will be
deprecated
on January 31, 2026. After deprecation, you won't be able to deploy Python 2.7
applications, even if your organization previously used an organization policy to
re-enable deployments of legacy runtimes. Your existing Python
2.7 applications will continue to run and receive traffic after their
deprecation date. We recommend that
you
migrate to the latest supported version of Python.
Stay organized with collections
Save and categorize content based on your preferences.
google.appengine.api.files.crc32c module
Summary
Implementation of CRC-32C checksumming as in rfc3720 section B.4.
See http://en.wikipedia.org/wiki/Cyclic_redundancy_check for details on CRC-32C.
This code is a manual python translation of c code generated by
pycrc 0.7.1 (http://www.tty1.net/pycrc/). Command line used:
โ./pycrc.py โmodel=crc-32c โgenerate c โalgorithm=table-drivenโ
Contents
- google.appengine.api.files.crc32c.crc(data)source
Compute CRC-32C checksum of the data.
Parametersdata โ byte array, string or iterable over bytes.
Returns32-bit CRC-32C checksum of data as long.
- google.appengine.api.files.crc32c.crc_finalize(crc)source
Finalize CRC-32C checksum.
This function should be called as last step of crc calculation.
Parameterscrc โ 32-bit checksum as long.
Returnsfinalized 32-bit checksum as long
- google.appengine.api.files.crc32c.crc_update(crc, data)source
Update CRC-32C checksum with data.
ParametersReturns32-bit updated CRC-32C as long.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["\u003cp\u003eThis module implements CRC-32C checksumming, as detailed in rfc3720 section B.4, and is based on a Python translation of C code generated by pycrc 0.7.1.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecrc(data)\u003c/code\u003e function computes the CRC-32C checksum for a given byte array, string, or iterable of bytes, returning a 32-bit checksum as a long integer.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecrc_finalize(crc)\u003c/code\u003e function finalizes the CRC-32C checksum, and should be the last step of the calculation, returning the finalized 32-bit checksum as a long integer.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecrc_update(crc, data)\u003c/code\u003e function allows updating an existing 32-bit CRC-32C checksum with additional data, and returns the updated 32-bit checksum as a long integer.\u003c/p\u003e\n"]]],[],null,["# google.appengine.api.files.crc32c module\n========================================\n\nSummary\n-------\n\nImplementation of CRC-32C checksumming as in rfc3720 section B.4.\n\nSee \u003chttp://en.wikipedia.org/wiki/Cyclic_redundancy_check\u003e for details on CRC-32C.\n\nThis code is a manual python translation of c code generated by\npycrc 0.7.1 (\u003chttp://www.tty1.net/pycrc/\u003e). Command line used:\n'./pycrc.py --model=crc-32c --generate c --algorithm=table-driven'\n\nContents\n--------\n\ngoogle.appengine.api.files.crc32c.crc(data)[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/files/crc32c#crc)\n\n: Compute CRC-32C checksum of the data.\n\n Parameters\n\n data -- byte array, string or iterable over bytes.\n Returns\n\n32-bit CRC-32C checksum of data as long. \n\ngoogle.appengine.api.files.crc32c.crc_finalize(crc)[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/files/crc32c#crc_finalize)\n\n: Finalize CRC-32C checksum.\n\n This function should be called as last step of crc calculation.\n Parameters\n\n crc -- 32-bit checksum as long.\n Returns\n\nfinalized 32-bit checksum as long \n\ngoogle.appengine.api.files.crc32c.crc_update(crc, data)[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/files/crc32c#crc_update)\n\n: Update CRC-32C checksum with data.\n\n Parameters\n\n - crc -- 32-bit checksum to update as long.\n\n - data -- byte array, string or iterable over bytes.\n\n Returns\n\n 32-bit updated CRC-32C as long."]]