Lines Matching refs:data
6 "a2b_uu($module, data, /)\n"
9 "Decode a line of uuencoded data.");
15 binascii_a2b_uu_impl(PyObject *module, Py_buffer *data);
21 Py_buffer data = {NULL, NULL};
23 if (!ascii_buffer_converter(arg, &data)) {
26 return_value = binascii_a2b_uu_impl(module, &data);
29 /* Cleanup for data */
30 if (data.obj)
31 PyBuffer_Release(&data);
37 "b2a_uu($module, data, /, *, backtick=False)\n"
40 "Uuencode line of data.");
46 binascii_b2a_uu_impl(PyObject *module, Py_buffer *data, int backtick);
56 Py_buffer data = {NULL, NULL};
63 if (PyObject_GetBuffer(args[0], &data, PyBUF_SIMPLE) != 0) {
66 if (!PyBuffer_IsContiguous(&data, 'C')) {
78 return_value = binascii_b2a_uu_impl(module, &data, backtick);
81 /* Cleanup for data */
82 if (data.obj) {
83 PyBuffer_Release(&data);
90 "a2b_base64($module, data, /, *, strict_mode=False)\n"
93 "Decode a line of base64 data.\n"
97 " The same applies to excess data after padding (= / ==).");
103 binascii_a2b_base64_impl(PyObject *module, Py_buffer *data, int strict_mode);
113 Py_buffer data = {NULL, NULL};
120 if (!ascii_buffer_converter(args[0], &data)) {
131 return_value = binascii_a2b_base64_impl(module, &data, strict_mode);
134 /* Cleanup for data */
135 if (data.obj)
136 PyBuffer_Release(&data);
142 "b2a_base64($module, data, /, *, newline=True)\n"
145 "Base64-code line of data.");
151 binascii_b2a_base64_impl(PyObject *module, Py_buffer *data, int newline);
161 Py_buffer data = {NULL, NULL};
168 if (PyObject_GetBuffer(args[0], &data, PyBUF_SIMPLE) != 0) {
171 if (!PyBuffer_IsContiguous(&data, 'C')) {
183 return_value = binascii_b2a_base64_impl(module, &data, newline);
186 /* Cleanup for data */
187 if (data.obj) {
188 PyBuffer_Release(&data);
195 "crc_hqx($module, data, crc, /)\n"
204 binascii_crc_hqx_impl(PyObject *module, Py_buffer *data, unsigned int crc);
210 Py_buffer data = {NULL, NULL};
216 if (PyObject_GetBuffer(args[0], &data, PyBUF_SIMPLE) != 0) {
219 if (!PyBuffer_IsContiguous(&data, 'C')) {
227 return_value = binascii_crc_hqx_impl(module, &data, crc);
230 /* Cleanup for data */
231 if (data.obj) {
232 PyBuffer_Release(&data);
239 "crc32($module, data, crc=0, /)\n"
248 binascii_crc32_impl(PyObject *module, Py_buffer *data, unsigned int crc);
254 Py_buffer data = {NULL, NULL};
261 if (PyObject_GetBuffer(args[0], &data, PyBUF_SIMPLE) != 0) {
264 if (!PyBuffer_IsContiguous(&data, 'C')) {
276 _return_value = binascii_crc32_impl(module, &data, crc);
283 /* Cleanup for data */
284 if (data.obj) {
285 PyBuffer_Release(&data);
292 "b2a_hex($module, /, data, sep=<unrepresentable>, bytes_per_sep=1)\n"
295 "Hexadecimal representation of binary data.\n"
318 binascii_b2a_hex_impl(PyObject *module, Py_buffer *data, PyObject *sep,
325 static const char * const _keywords[] = {"data", "sep", "bytes_per_sep", NULL};
329 Py_buffer data = {NULL, NULL};
337 if (PyObject_GetBuffer(args[0], &data, PyBUF_SIMPLE) != 0) {
340 if (!PyBuffer_IsContiguous(&data, 'C')) {
341 _PyArg_BadArgument("b2a_hex", "argument 'data'", "contiguous buffer", args[0]);
358 return_value = binascii_b2a_hex_impl(module, &data, sep, bytes_per_sep);
361 /* Cleanup for data */
362 if (data.obj) {
363 PyBuffer_Release(&data);
370 "hexlify($module, /, data, sep=<unrepresentable>, bytes_per_sep=1)\n"
373 "Hexadecimal representation of binary data.\n"
388 binascii_hexlify_impl(PyObject *module, Py_buffer *data, PyObject *sep,
395 static const char * const _keywords[] = {"data", "sep", "bytes_per_sep", NULL};
399 Py_buffer data = {NULL, NULL};
407 if (PyObject_GetBuffer(args[0], &data, PyBUF_SIMPLE) != 0) {
410 if (!PyBuffer_IsContiguous(&data, 'C')) {
411 _PyArg_BadArgument("hexlify", "argument 'data'", "contiguous buffer", args[0]);
428 return_value = binascii_hexlify_impl(module, &data, sep, bytes_per_sep);
431 /* Cleanup for data */
432 if (data.obj) {
433 PyBuffer_Release(&data);
443 "Binary data of hexadecimal representation.\n"
477 "Binary data of hexadecimal representation.\n"
507 "a2b_qp($module, /, data, header=False)\n"
510 "Decode a string of qp-encoded data.");
516 binascii_a2b_qp_impl(PyObject *module, Py_buffer *data, int header);
522 static const char * const _keywords[] = {"data", "header", NULL};
526 Py_buffer data = {NULL, NULL};
533 if (!ascii_buffer_converter(args[0], &data)) {
544 return_value = binascii_a2b_qp_impl(module, &data, header);
547 /* Cleanup for data */
548 if (data.obj)
549 PyBuffer_Release(&data);
555 "b2a_qp($module, /, data, quotetabs=False, istext=True, header=False)\n"
568 binascii_b2a_qp_impl(PyObject *module, Py_buffer *data, int quotetabs,
575 static const char * const _keywords[] = {"data", "quotetabs", "istext", "header", NULL};
579 Py_buffer data = {NULL, NULL};
588 if (PyObject_GetBuffer(args[0], &data, PyBUF_SIMPLE) != 0) {
591 if (!PyBuffer_IsContiguous(&data, 'C')) {
592 _PyArg_BadArgument("b2a_qp", "argument 'data'", "contiguous buffer", args[0]);
621 return_value = binascii_b2a_qp_impl(module, &data, quotetabs, istext, header);
624 /* Cleanup for data */
625 if (data.obj) {
626 PyBuffer_Release(&data);