Lines Matching refs:byteorder
229 "to_bytes($self, /, length=1, byteorder=\'big\', *, signed=False)\n"
238 " byteorder\n"
239 " The byte order used to represent the integer. If byteorder is \'big\',\n"
241 " byteorder is \'little\', the most significant byte is at the end of the\n"
243 " `sys.byteorder\' as the byte order value. Default is to use \'big\'.\n"
253 int_to_bytes_impl(PyObject *self, Py_ssize_t length, PyObject *byteorder,
260 static const char * const _keywords[] = {"length", "byteorder", "signed", NULL};
265 PyObject *byteorder = NULL;
294 _PyArg_BadArgument("to_bytes", "argument 'byteorder'", "str", args[1]);
300 byteorder = args[1];
314 return_value = int_to_bytes_impl(self, length, byteorder, is_signed);
321 "from_bytes($type, /, bytes, byteorder=\'big\', *, signed=False)\n"
331 " byteorder\n"
332 " The byte order used to represent the integer. If byteorder is \'big\',\n"
334 " byteorder is \'little\', the most significant byte is at the end of the\n"
336 " `sys.byteorder\' as the byte order value. Default is to use \'big\'.\n"
345 PyObject *byteorder, int is_signed);
351 static const char * const _keywords[] = {"bytes", "byteorder", "signed", NULL};
356 PyObject *byteorder = NULL;
369 _PyArg_BadArgument("from_bytes", "argument 'byteorder'", "str", args[1]);
375 byteorder = args[1];
389 return_value = int_from_bytes_impl(type, bytes_obj, byteorder, is_signed);