Home
last modified time | relevance | path

Searched refs:PyByteArray_Check (Results 1 – 25 of 34) sorted by relevance

12

/external/python/cpython2/Include/
Dbytearrayobject.h35 #define PyByteArray_Check(self) PyObject_TypeCheck(self, &PyByteArray_Type) macro
48 (assert(PyByteArray_Check(self)), \
50 #define PyByteArray_GET_SIZE(self) (assert(PyByteArray_Check(self)),Py_SIZE(self))
/external/python/cpython3/Include/cpython/
Dbytearrayobject.h16 (assert(PyByteArray_Check(self)), \
18 #define PyByteArray_GET_SIZE(self) (assert(PyByteArray_Check(self)), Py_SIZE(self))
/external/python/cpython3/Objects/stringlib/clinic/
Dtransmogrify.h.h89 else if (PyByteArray_Check(args[1]) && PyByteArray_GET_SIZE(args[1]) == 1) { in stringlib_ljust()
145 else if (PyByteArray_Check(args[1]) && PyByteArray_GET_SIZE(args[1]) == 1) { in stringlib_rjust()
201 else if (PyByteArray_Check(args[1]) && PyByteArray_GET_SIZE(args[1]) == 1) { in stringlib_center()
/external/python/cpython3/Include/
Dbytearrayobject.h26 #define PyByteArray_Check(self) PyObject_TypeCheck(self, &PyByteArray_Type) macro
/external/python/cpython3/Objects/
Dbytearrayobject.c153 assert(PyByteArray_Check(self)); in PyByteArray_Size()
162 assert(PyByteArray_Check(self)); in PyByteArray_AsString()
179 assert(PyByteArray_Check(self)); in PyByteArray_Resize()
654 else if (values == (PyObject *)self || !PyByteArray_Check(values)) { in bytearray_ass_subscript()
671 assert(PyByteArray_Check(values)); in bytearray_ass_subscript()
2291 if (!PyByteArray_Check(v)) in bytearray_mod()
2396 assert(PyByteArray_Check(seq)); in bytearrayiter_next()
2505 if (!PyByteArray_Check(seq)) { in bytearray_iter()
Dbytesobject.c525 else if (PyByteArray_Check(arg) && PyByteArray_GET_SIZE(arg) == 1) { in byte_converter()
566 if (PyByteArray_Check(v)) { in format_obj()
647 !PyByteArray_Check(args)) { in _PyBytes_FormatEx()
Dfloatobject.c202 else if (PyByteArray_Check(v)) { in PyFloat_FromString()
Dlongobject.c4961 else if (PyByteArray_Check(x) || PyBytes_Check(x)) { in long_new_impl()
4963 if (PyByteArray_Check(x)) in long_new_impl()
/external/python/cpython2/Objects/
Dbytearrayobject.c229 assert(PyByteArray_Check(self)); in PyByteArray_Size()
238 assert(PyByteArray_Check(self)); in PyByteArray_AsString()
250 assert(PyByteArray_Check(self)); in PyByteArray_Resize()
658 else if (values == (PyObject *)self || !PyByteArray_Check(values)) { in bytearray_ass_subscript()
675 assert(PyByteArray_Check(values)); in bytearray_ass_subscript()
2632 if (!PyByteArray_Check(obj) && !PyBytes_Check(obj)) { in bytearray_join()
2658 if (PyByteArray_Check(obj)) in bytearray_join()
2994 assert(PyByteArray_Check(seq)); in bytearrayiter_next()
3065 if (!PyByteArray_Check(seq)) { in bytearray_iter()
Dbytesobject.c495 else if (PyByteArray_Check(arg) && PyByteArray_GET_SIZE(arg) == 1) { in byte_converter()
547 if (PyByteArray_Check(v)) { in format_obj()
628 !PyByteArray_Check(args)) { in _PyBytes_FormatEx()
/external/python/cpython3/PC/clinic/
Dmsvcrtmodule.c.h344 else if (PyByteArray_Check(arg) && PyByteArray_GET_SIZE(arg) == 1) { in msvcrt_putch()
418 else if (PyByteArray_Check(arg) && PyByteArray_GET_SIZE(arg) == 1) { in msvcrt_ungetch()
/external/python/cpython3/Lib/test/
Dclinic.test222 if (!PyByteArray_Check(args[8])) {
312 if (!PyByteArray_Check(arg)) {
501 else if (PyByteArray_Check(args[0]) && PyByteArray_GET_SIZE(args[0]) == 1) {
514 else if (PyByteArray_Check(args[1]) && PyByteArray_GET_SIZE(args[1]) == 1) {
527 else if (PyByteArray_Check(args[2]) && PyByteArray_GET_SIZE(args[2]) == 1) {
540 else if (PyByteArray_Check(args[3]) && PyByteArray_GET_SIZE(args[3]) == 1) {
553 else if (PyByteArray_Check(args[4]) && PyByteArray_GET_SIZE(args[4]) == 1) {
566 else if (PyByteArray_Check(args[5]) && PyByteArray_GET_SIZE(args[5]) == 1) {
579 else if (PyByteArray_Check(args[6]) && PyByteArray_GET_SIZE(args[6]) == 1) {
592 else if (PyByteArray_Check(args[7]) && PyByteArray_GET_SIZE(args[7]) == 1) {
[all …]
/external/python/cpython2/Doc/c-api/
Dbytearray.rst26 .. c:function:: int PyByteArray_Check(PyObject *o)
/external/python/cpython3/Doc/c-api/
Dbytearray.rst25 .. c:function:: int PyByteArray_Check(PyObject *o)
/external/dtc/pylibfdt/
Dlibfdt.i1051 if (!PyByteArray_Check($input)) {
1062 if (!PyByteArray_Check($input)) {
/external/python/cpython3/Python/
Dgetargs.c858 else if (PyByteArray_Check(arg) && PyByteArray_Size(arg) == 1) in convertsimple()
1099 (PyBytes_Check(arg) || PyByteArray_Check(arg))) { in convertsimple()
1239 if (PyByteArray_Check(arg)) in convertsimple()
Dbltinmodule.c1899 else if (PyByteArray_Check(c)) { in builtin_ord()
2441 if (PyByteArray_Check(result)) { in builtin_sum_impl()
Dpythonrun.c1416 else if (PyByteArray_Check(cmd)) { in _Py_SourceAsString()
/external/python/cpython2/Modules/_io/
Dfileio.c264 if (PyBytes_Check(nameobj) || PyByteArray_Check(nameobj)) { in fileio_init()
/external/libnl/python/netlink/
Dcapi.i818 if (PyByteArray_Check($input)) {
/external/python/cpython3/Modules/
D_struct.c1815 if (!isstring && !PyByteArray_Check(v)) { in s_pack_internal()
1837 if (!isstring && !PyByteArray_Check(v)) { in s_pack_internal()
Darraymodule.c2646 || PyByteArray_Check(initial) in array_new()
2697 else if (initial != NULL && (PyByteArray_Check(initial) || in array_new()
Dpyexpat.c782 else if (PyByteArray_Check(str)) in readinst()
/external/python/cpython3/Modules/_ctypes/
Dcfield.c1113 if (PyByteArray_Check(value) && PyByteArray_GET_SIZE(value) == 1) { in c_set()
/external/python/cpython3/Doc/data/
Drefcounts.dat80 PyByteArray_Check:int:::
81 PyByteArray_Check:PyObject*:o:0:

12