Lines Matching refs:args

49 binascii_b2a_uu(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
59 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 1, 0, argsbuf);
60 if (!args) {
63 if (PyObject_GetBuffer(args[0], &data, PyBUF_SIMPLE) != 0) {
67 _PyArg_BadArgument("b2a_uu", "argument 1", "contiguous buffer", args[0]);
73 backtick = _PyLong_AsInt(args[1]);
106 binascii_a2b_base64(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
116 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 1, 0, argsbuf);
117 if (!args) {
120 if (!ascii_buffer_converter(args[0], &data)) {
126 strict_mode = _PyLong_AsInt(args[1]);
154 binascii_b2a_base64(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
164 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 1, 0, argsbuf);
165 if (!args) {
168 if (PyObject_GetBuffer(args[0], &data, PyBUF_SIMPLE) != 0) {
172 _PyArg_BadArgument("b2a_base64", "argument 1", "contiguous buffer", args[0]);
178 newline = _PyLong_AsInt(args[1]);
207 binascii_crc_hqx(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
216 if (PyObject_GetBuffer(args[0], &data, PyBUF_SIMPLE) != 0) {
220 _PyArg_BadArgument("crc_hqx", "argument 1", "contiguous buffer", args[0]);
223 crc = (unsigned int)PyLong_AsUnsignedLongMask(args[1]);
251 binascii_crc32(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
261 if (PyObject_GetBuffer(args[0], &data, PyBUF_SIMPLE) != 0) {
265 _PyArg_BadArgument("crc32", "argument 1", "contiguous buffer", args[0]);
271 crc = (unsigned int)PyLong_AsUnsignedLongMask(args[1]);
322 binascii_b2a_hex(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
333 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 3, 0, argsbuf);
334 if (!args) {
337 if (PyObject_GetBuffer(args[0], &data, PyBUF_SIMPLE) != 0) {
341 _PyArg_BadArgument("b2a_hex", "argument 'data'", "contiguous buffer", args[0]);
347 if (args[1]) {
348 sep = args[1];
353 bytes_per_sep = _PyLong_AsInt(args[2]);
392 binascii_hexlify(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
403 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 3, 0, argsbuf);
404 if (!args) {
407 if (PyObject_GetBuffer(args[0], &data, PyBUF_SIMPLE) != 0) {
411 _PyArg_BadArgument("hexlify", "argument 'data'", "contiguous buffer", args[0]);
417 if (args[1]) {
418 sep = args[1];
423 bytes_per_sep = _PyLong_AsInt(args[2]);
519 binascii_a2b_qp(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
529 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 2, 0, argsbuf);
530 if (!args) {
533 if (!ascii_buffer_converter(args[0], &data)) {
539 header = _PyLong_AsInt(args[1]);
572 binascii_b2a_qp(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
584 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 4, 0, argsbuf);
585 if (!args) {
588 if (PyObject_GetBuffer(args[0], &data, PyBUF_SIMPLE) != 0) {
592 _PyArg_BadArgument("b2a_qp", "argument 'data'", "contiguous buffer", args[0]);
598 if (args[1]) {
599 quotetabs = _PyLong_AsInt(args[1]);
607 if (args[2]) {
608 istext = _PyLong_AsInt(args[2]);
616 header = _PyLong_AsInt(args[3]);