Home
last modified time | relevance | path

Searched refs:subbuf (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Objects/
Dbytes_methods.c470 Py_buffer subbuf; in find_internal() local
481 if (PyObject_GetBuffer(subobj, &subbuf, PyBUF_SIMPLE) != 0) in find_internal()
484 sub = subbuf.buf; in find_internal()
485 sub_len = subbuf.len; in find_internal()
519 PyBuffer_Release(&subbuf); in find_internal()
/external/python/cpython3/Modules/_io/
Dwinconsoleio.c824 wchar_t *subbuf; in _io__WindowsConsoleIO_readall_impl() local
846 subbuf = read_console_w(self->handle, bufsize - len, &n); in _io__WindowsConsoleIO_readall_impl()
848 if (subbuf == NULL) { in _io__WindowsConsoleIO_readall_impl()
854 wcsncpy_s(&buf[len], bufsize - len + 1, subbuf, n); in _io__WindowsConsoleIO_readall_impl()
856 PyMem_Free(subbuf); in _io__WindowsConsoleIO_readall_impl()
/external/python/cpython2/Objects/
Dbytearrayobject.c1157 Py_buffer subbuf; in bytearray_find_internal() local
1164 if (_getbuffer(subobj, &subbuf) < 0) in bytearray_find_internal()
1169 subbuf.buf, subbuf.len, start, end); in bytearray_find_internal()
1173 subbuf.buf, subbuf.len, start, end); in bytearray_find_internal()
1174 PyBuffer_Release(&subbuf); in bytearray_find_internal()