Home
last modified time | relevance | path

Searched refs:PyBytes_AS_STRING (Results 1 - 25 of 80) sorted by relevance

1234

/third_party/python/Include/internal/
H A Dpycore_blocks_output_buffer.h137 *next_out = PyBytes_AS_STRING(b); in _BlocksOutputBuffer_InitAndGrow()
178 *next_out = PyBytes_AS_STRING(b); in _BlocksOutputBuffer_InitWithSize()
243 *next_out = PyBytes_AS_STRING(b); in _BlocksOutputBuffer_Grow()
287 char *posi = PyBytes_AS_STRING(result); in _BlocksOutputBuffer_Finish()
293 memcpy(posi, PyBytes_AS_STRING(block), Py_SIZE(block)); in _BlocksOutputBuffer_Finish()
298 memcpy(posi, PyBytes_AS_STRING(block), Py_SIZE(block) - avail_out); in _BlocksOutputBuffer_Finish()
H A Dpycore_code.h154 char *ptr = PyBytes_AS_STRING(kinds); in _PyLocals_GetKind()
163 char *ptr = PyBytes_AS_STRING(kinds); in _PyLocals_SetKind()
/third_party/python/Objects/
H A Dbytesobject.c492 *p = PyBytes_AS_STRING(arg)[0]; in byte_converter()
531 *pbuf = PyBytes_AS_STRING(v); in format_obj()
556 *pbuf = PyBytes_AS_STRING(result); in format_obj()
566 *pbuf = PyBytes_AS_STRING(result); in format_obj()
911 pbuf = PyBytes_AS_STRING(temp); in _PyBytes_FormatEx()
1250 *s = PyBytes_AS_STRING(obj); in PyBytes_AsStringAndSize()
1433 memcpy(PyBytes_AS_STRING(result), va.buf, va.len); in bytes_concat()
1434 memcpy(PyBytes_AS_STRING(result) + va.len, vb.buf, vb.len); in bytes_concat()
1491 return _Py_bytes_contains(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), arg); in bytes_contains()
1635 PyBytes_AS_STRING(sel in bytes_subscript()
[all...]
H A Dcodeobject.c263 !_Py_IS_ALIGNED(PyBytes_AS_STRING(con->code), sizeof(_Py_CODEUNIT)) in _PyCode_Validate()
342 memcpy(_PyCode_CODE(co), PyBytes_AS_STRING(con->code), in init_code()
404 const uint8_t *data = (const uint8_t *)PyBytes_AS_STRING(locations); in remove_column_info()
410 uint8_t *output = (uint8_t *)PyBytes_AS_STRING(res); in remove_column_info()
412 Py_ssize_t write_offset = output - (uint8_t *)PyBytes_AS_STRING(res); in remove_column_info()
417 output = (uint8_t *)PyBytes_AS_STRING(res) + write_offset; in remove_column_info()
436 Py_ssize_t write_offset = output - (uint8_t *)PyBytes_AS_STRING(res); in remove_column_info()
603 assert(_Py_IS_ALIGNED(PyBytes_AS_STRING(code), sizeof(_Py_CODEUNIT))); in PyCode_NewWithPosOnlyArgs()
795 const char *linetable = PyBytes_AS_STRING(co->co_linetable); in _PyCode_InitAddressRange()
1063 unsigned char *lnotab = (unsigned char *) PyBytes_AS_STRING(*byte in emit_pair()
[all...]
H A Dfileobject.c77 const char *s = PyBytes_AS_STRING(result); in PyFile_GetLine()
341 str = PyBytes_AS_STRING(bytes); in stdprinter_write()
H A Dbytes_methods.c420 p = PyBytes_AS_STRING(res); in _Py_bytes_maketrans()
732 sub = PyBytes_AS_STRING(substr); in tailmatch()
/third_party/python/Include/cpython/
H A Dbytesobject.h35 static inline char* PyBytes_AS_STRING(PyObject *op) in PyBytes_AS_STRING() function
40 # define PyBytes_AS_STRING(op) PyBytes_AS_STRING(_PyObject_CAST(op)) macro
/third_party/python/Modules/
H A D_codecsmodule.c221 char *p = PyBytes_AS_STRING(v); in _codecs_escape_encode_impl()
225 assert(newsize - (p - PyBytes_AS_STRING(v)) >= 4); in _codecs_escape_encode_impl()
226 c = PyBytes_AS_STRING(data)[i]; in _codecs_escape_encode_impl()
245 if (_PyBytes_Resize(&v, (p - PyBytes_AS_STRING(v)))) { in _codecs_escape_encode_impl()
H A Dreadline.c208 strcpy(copy, PyBytes_AS_STRING(encoded)); in readline_parse_and_bind()
236 errno = rl_read_init_file(PyBytes_AS_STRING(filename_bytes)); in readline_read_init_file_impl()
267 errno = read_history(PyBytes_AS_STRING(filename_bytes)); in readline_read_history_file_impl()
301 filename = PyBytes_AS_STRING(filename_bytes); in readline_write_history_file_impl()
342 filename = PyBytes_AS_STRING(filename_bytes); in readline_append_history_file_impl()
570 break_chars = strdup(PyBytes_AS_STRING(encoded)); in readline_set_completer_delims()
677 PyBytes_AS_STRING(encoded), (void *)NULL); in readline_replace_history_item_impl()
709 add_history(PyBytes_AS_STRING(encoded)); in readline_add_history()
922 rl_insert_text(PyBytes_AS_STRING(encoded)); in readline_insert_text()
1129 result = strdup(PyBytes_AS_STRING(encode in on_completion()
[all...]
H A D_gdbmmodule.c402 key.dptr = PyBytes_AS_STRING(arg); in gdbm_contains()
680 const char *name = PyBytes_AS_STRING(filenamebytes); in dbmopen_impl()
H A D_dbmmodule.c297 key.dptr = PyBytes_AS_STRING(arg); in dbm_contains()
492 const char *name = PyBytes_AS_STRING(filenamebytes); in dbmopen_impl()
/third_party/python/Modules/_io/
H A Dbytesio.c89 start = PyBytes_AS_STRING(self->buf) + self->pos; in scan_eol()
115 memcpy(PyBytes_AS_STRING(new_buf), PyBytes_AS_STRING(self->buf), in unshare_buffer()
222 memset(PyBytes_AS_STRING(self->buf) + self->string_size, '\0', in write_bytes()
228 memcpy(PyBytes_AS_STRING(self->buf) + self->pos, buf.buf, len); in write_bytes()
346 return PyBytes_FromStringAndSize(PyBytes_AS_STRING(self->buf), in _io_BytesIO_getvalue_impl()
408 output = PyBytes_AS_STRING(self->buf) + self->pos; in read_bytes()
529 output = PyBytes_AS_STRING(self->buf) + self->pos; in _io_BytesIO_readlines_impl()
580 memcpy(buffer->buf, PyBytes_AS_STRING(self->buf) + self->pos, len); in _io_BytesIO_readinto_impl()
1093 PyBytes_AS_STRING( in bytesiobuf_getbuffer()
[all...]
H A Dfileio.c285 name = PyBytes_AS_STRING(stringobj);
753 PyBytes_AS_STRING(result) + bytes_read,
815 ptr = PyBytes_AS_STRING(bytes);
/third_party/python/Objects/stringlib/clinic/
H A Dtransmogrify.h.h87 fillchar = PyBytes_AS_STRING(args[1])[0]; in stringlib_ljust()
143 fillchar = PyBytes_AS_STRING(args[1])[0]; in stringlib_rjust()
199 fillchar = PyBytes_AS_STRING(args[1])[0]; in stringlib_center()
/third_party/python/Python/
H A Dimportdl.c121 name_buf = PyBytes_AS_STRING(name); in _PyImport_LoadDynamicModuleWithSpec()
140 PyBytes_AS_STRING(pathbytes), in _PyImport_LoadDynamicModuleWithSpec()
H A Dpystrhex.c33 sep_char = PyBytes_AS_STRING(sep)[0]; in _Py_strhex_impl()
73 retbuf = (Py_UCS1 *)PyBytes_AS_STRING(retval); in _Py_strhex_impl()
/third_party/python/Modules/_sqlite/
H A Dblob.c149 char *raw_buffer = PyBytes_AS_STRING(buffer); in read_multiple()
443 char *blob_buf = PyBytes_AS_STRING(blob); in subscript_slice()
444 char *res_buf = PyBytes_AS_STRING(result); in subscript_slice()
538 char *blob_buf = PyBytes_AS_STRING(blob_bytes); in ass_subscript_slice()
/third_party/PyYAML/yaml/
H A D_yaml.h5 #define PyBytes_AS_Yaml_STRING(s) ((yaml_char_t *)PyBytes_AS_STRING(s))
/third_party/python/Objects/stringlib/
H A Dstringdefs.h20 #define STRINGLIB_STR PyBytes_AS_STRING
H A Djoin.h68 buffers[i].buf = PyBytes_AS_STRING(item); in bytes_join()
/third_party/python/PC/
H A D_testconsole.c59 const wchar_t *p = (const wchar_t *)PyBytes_AS_STRING(s); in _testconsole_write_input_impl()
/third_party/python/Modules/cjkcodecs/
H A Dmultibytecodec.c194 PyBytes_AS_STRING(buf->outobj)); in expand_encodebuffer()
206 buf->outbuf = (unsigned char *)PyBytes_AS_STRING(buf->outobj) +orgpos; in expand_encodebuffer()
207 buf->outbuf_end = (unsigned char *)PyBytes_AS_STRING(buf->outobj) in expand_encodebuffer()
352 memcpy(buf->outbuf, PyBytes_AS_STRING(retstr), retstrsize); in multibytecodec_encerror()
517 buf.outbuf = (unsigned char *)PyBytes_AS_STRING(buf.outobj); in multibytecodec_encode()
552 PyBytes_AS_STRING(buf.outobj)); in multibytecodec_encode()
1441 ctrdata = PyBytes_AS_STRING(ctr); in mbstreamreader_iread()
1444 PyBytes_AS_STRING(cres), in mbstreamreader_iread()
1452 if (decoder_prepare_buffer(&buf, PyBytes_AS_STRING(cres), in mbstreamreader_iread()
/third_party/python/Modules/_multiprocessing/
H A Dmultiprocessing.c111 nread = recv((SOCKET) handle, PyBytes_AS_STRING(buf), size, 0); in _multiprocessing_recv_impl()
/third_party/python/Programs/
H A D_freeze_module.c163 unsigned char *data = (unsigned char *) PyBytes_AS_STRING(marshalled); in write_code()
/third_party/python/PC/clinic/
H A Dmsvcrtmodule.c.h342 char_value = PyBytes_AS_STRING(arg)[0]; in msvcrt_putch()
416 char_value = PyBytes_AS_STRING(arg)[0]; in msvcrt_ungetch()

Completed in 24 milliseconds

1234