Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8006d316
Commit
8006d316
authored
Feb 16, 2000
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added docs for new crc32() function. By Jim Ahlstrom.
(Fred, please check.)
parent
cba04366
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
Doc/lib/libbinascii.tex
Doc/lib/libbinascii.tex
+12
-0
No files found.
Doc/lib/libbinascii.tex
View file @
8006d316
...
...
@@ -71,6 +71,18 @@ length divisible by 3 (except possibly the last fragment).
Compute the binhex4 crc value of
\var
{
data
}
, starting with an initial
\var
{
crc
}
and returning the result.
\end{funcdesc}
\begin{funcdesc}
{
crc32
}{
data
\optional
{
, crc
}}
Compute CRC-32, the 32-bit checksum of data, starting with an initial
crc. This is consistent with the ZIP file checksum. Use as follows:
\begin{verbatim}
print binascii.crc32("hello world")
# Or, in two pieces:
crc = binascii.crc32("hello")
crc = binascii.crc32(" world", crc)
print crc
\end{verbatim}
\end{funcdesc}
\begin{excdesc}
{
Error
}
Exception raised on errors. These are usually programming errors.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment