Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
520569e9
Kaydet (Commit)
520569e9
authored
Ara 24, 2016
tarafından
Martin Panter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #29004: Merge crc_hqx() doc from 3.5
üst
3a72ee5b
3310e146
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
binascii.rst
Doc/library/binascii.rst
+4
-2
binascii.c
Modules/binascii.c
+2
-2
binascii.c.h
Modules/clinic/binascii.c.h
+2
-2
No files found.
Doc/library/binascii.rst
Dosyayı görüntüle @
520569e9
...
@@ -116,8 +116,10 @@ The :mod:`binascii` module defines the following functions:
...
@@ -116,8 +116,10 @@ The :mod:`binascii` module defines the following functions:
.. function:: crc_hqx(data, value)
.. function:: crc_hqx(data, value)
Compute the binhex4 crc value of *data*, starting with *value* as the
Compute a 16-bit CRC value of *data*, starting with *value* as the
initial crc, and return the result.
initial CRC, and return the result. This uses the CRC-CCITT polynomial
*x*:sup:`16` + *x*:sup:`12` + *x*:sup:`5` + 1, often represented as
0x1021. This CRC is used in the binhex4 format.
.. function:: crc32(data[, value])
.. function:: crc32(data[, value])
...
...
Modules/binascii.c
Dosyayı görüntüle @
520569e9
...
@@ -900,12 +900,12 @@ binascii.crc_hqx -> unsigned_int
...
@@ -900,12 +900,12 @@ binascii.crc_hqx -> unsigned_int
crc: unsigned_int(bitwise=True)
crc: unsigned_int(bitwise=True)
/
/
Compute
hqx CRC
incrementally.
Compute
CRC-CCITT
incrementally.
[clinic start generated code]*/
[clinic start generated code]*/
static
unsigned
int
static
unsigned
int
binascii_crc_hqx_impl
(
PyObject
*
module
,
Py_buffer
*
data
,
unsigned
int
crc
)
binascii_crc_hqx_impl
(
PyObject
*
module
,
Py_buffer
*
data
,
unsigned
int
crc
)
/*[clinic end generated code: output=8ec2a78590d19170 input=
add8c53712ccceda
]*/
/*[clinic end generated code: output=8ec2a78590d19170 input=
f18240ff8c705b79
]*/
{
{
const
unsigned
char
*
bin_data
;
const
unsigned
char
*
bin_data
;
Py_ssize_t
len
;
Py_ssize_t
len
;
...
...
Modules/clinic/binascii.c.h
Dosyayı görüntüle @
520569e9
...
@@ -263,7 +263,7 @@ PyDoc_STRVAR(binascii_crc_hqx__doc__,
...
@@ -263,7 +263,7 @@ PyDoc_STRVAR(binascii_crc_hqx__doc__,
"crc_hqx($module, data, crc, /)
\n
"
"crc_hqx($module, data, crc, /)
\n
"
"--
\n
"
"--
\n
"
"
\n
"
"
\n
"
"Compute
hqx CRC
incrementally."
);
"Compute
CRC-CCITT
incrementally."
);
#define BINASCII_CRC_HQX_METHODDEF \
#define BINASCII_CRC_HQX_METHODDEF \
{"crc_hqx", (PyCFunction)binascii_crc_hqx, METH_VARARGS, binascii_crc_hqx__doc__},
{"crc_hqx", (PyCFunction)binascii_crc_hqx, METH_VARARGS, binascii_crc_hqx__doc__},
...
@@ -550,4 +550,4 @@ exit:
...
@@ -550,4 +550,4 @@ exit:
return
return_value
;
return
return_value
;
}
}
/*[clinic end generated code: output=
1f8d6e48f75f6d1e
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
458eb09731cb7877
input=a9049054013a1b77]*/
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