Home
last modified time | relevance | path

Searched refs:PyBytes_AS_STRING (Results 1 – 25 of 85) sorted by relevance

1234

/third_party/python/Include/internal/
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()
/third_party/python/Objects/
Dbytesobject.c522 *p = PyBytes_AS_STRING(arg)[0]; in byte_converter()
561 *pbuf = PyBytes_AS_STRING(v); in format_obj()
586 *pbuf = PyBytes_AS_STRING(result); in format_obj()
596 *pbuf = PyBytes_AS_STRING(result); in format_obj()
941 pbuf = PyBytes_AS_STRING(temp); in _PyBytes_FormatEx()
1261 *s = PyBytes_AS_STRING(obj); in PyBytes_AsStringAndSize()
1425 memcpy(PyBytes_AS_STRING(result), va.buf, va.len); in bytes_concat()
1426 memcpy(PyBytes_AS_STRING(result) + va.len, vb.buf, vb.len); in bytes_concat()
1493 return _Py_bytes_contains(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), arg); in bytes_contains()
1634 PyBytes_AS_STRING(self) + start, in bytes_subscript()
[all …]
Dfileobject.c79 const char *s = PyBytes_AS_STRING(result); in PyFile_GetLine()
377 str = PyBytes_AS_STRING(bytes); in stdprinter_write()
Dunicodeobject.c3519 PyBytes_AS_STRING(obj), PyBytes_GET_SIZE(obj), in PyUnicode_FromEncodedObject()
4157 data = PyBytes_AS_STRING(output); in PyUnicode_FSConverter()
4210 output = PyUnicode_DecodeFSDefaultAndSize(PyBytes_AS_STRING(path_bytes), in PyUnicode_FSDecoder()
4507 *input = PyBytes_AS_STRING(inputobj); in unicode_decode_call_errorhandler_wchar()
4622 *input = PyBytes_AS_STRING(inputobj); in unicode_decode_call_errorhandler_writer()
4999 start = out = PyBytes_AS_STRING(v); in _PyUnicode_EncodeUTF7()
5701 PyBytes_AS_STRING(writer.buffer); in unicode_fill_utf8()
5941 assert(_Py_IS_ALIGNED(PyBytes_AS_STRING(v), 4)); in _PyUnicode_EncodeUTF32()
5942 out = (uint32_t *)PyBytes_AS_STRING(v); in _PyUnicode_EncodeUTF32()
6008 Py_ssize_t outpos = out - (uint32_t*) PyBytes_AS_STRING(v); in _PyUnicode_EncodeUTF32()
[all …]
/third_party/python/Modules/_io/
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(b->buf), b->string_size, in bytesiobuf_getbuffer()
Dfileio.c287 name = PyBytes_AS_STRING(stringobj);
751 PyBytes_AS_STRING(result) + bytes_read,
813 ptr = PyBytes_AS_STRING(bytes);
Dwinconsoleio.c862 rn = _copyfrombuf(self, PyBytes_AS_STRING(bytes), bytes_size); in _io__WindowsConsoleIO_readall_impl()
867 &PyBytes_AS_STRING(bytes)[rn], bytes_size - rn, NULL, NULL); in _io__WindowsConsoleIO_readall_impl()
926 bytes_size = readinto(self, PyBytes_AS_STRING(bytes), PyBytes_GET_SIZE(bytes)); in _io__WindowsConsoleIO_read_impl()
/third_party/python/Modules/
Dreadline.c206 strcpy(copy, PyBytes_AS_STRING(encoded)); in readline_parse_and_bind()
234 errno = rl_read_init_file(PyBytes_AS_STRING(filename_bytes)); in readline_read_init_file_impl()
265 errno = read_history(PyBytes_AS_STRING(filename_bytes)); in readline_read_history_file_impl()
299 filename = PyBytes_AS_STRING(filename_bytes); in readline_write_history_file_impl()
340 filename = PyBytes_AS_STRING(filename_bytes); in readline_append_history_file_impl()
568 break_chars = strdup(PyBytes_AS_STRING(encoded)); in readline_set_completer_delims()
675 PyBytes_AS_STRING(encoded), (void *)NULL); in readline_replace_history_item_impl()
707 add_history(PyBytes_AS_STRING(encoded)); in readline_add_history()
920 rl_insert_text(PyBytes_AS_STRING(encoded)); in readline_insert_text()
1127 result = strdup(PyBytes_AS_STRING(encoded)); in on_completion()
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()
D_tkinter.c632 const char *list = PyBytes_AS_STRING(arg); in SplitObj()
640 return Split(PyBytes_AS_STRING(arg)); in SplitObj()
836 PyBytes_AS_STRING(utf8_path), in Tkapp_New()
1074 return Tcl_NewByteArrayObj((unsigned char *)PyBytes_AS_STRING(value), in AsObj()
1180 result = Tcl_NewUnicodeObj((const Tcl_UniChar *)PyBytes_AS_STRING(encoded), in AsObj()
1183 result = Tcl_NewStringObj(PyBytes_AS_STRING(encoded), (int)size); in AsObj()
1761 s = PyBytes_AS_STRING(in); in varname_converter()
3624 Tcl_FindExecutable(PyBytes_AS_STRING(cexe)); in PyInit__tkinter()
3631 Tcl_FindExecutable(PyBytes_AS_STRING(cexe)); in PyInit__tkinter()
D_dbmmodule.c291 key.dptr = PyBytes_AS_STRING(arg); in dbm_contains()
487 const char *name = PyBytes_AS_STRING(filenamebytes); in dbmopen_impl()
/third_party/python/Objects/stringlib/clinic/
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/
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()
Dimportdl.c119 name_buf = PyBytes_AS_STRING(name); in _PyImport_LoadDynamicModuleWithSpec()
138 PyBytes_AS_STRING(pathbytes), in _PyImport_LoadDynamicModuleWithSpec()
Dmarshal.c133 p->buf = PyBytes_AS_STRING(p->str); in w_reserve()
422 w_pstring(PyBytes_AS_STRING(v), PyBytes_GET_SIZE(v), p); in w_complex_object()
456 w_pstring(PyBytes_AS_STRING(utf8), PyBytes_GET_SIZE(utf8), p); in w_complex_object()
1077 memcpy(PyBytes_AS_STRING(v), ptr, n); in r_object()
1581 wf.ptr = wf.buf = PyBytes_AS_STRING(wf.str); in PyMarshal_WriteObjectToString()
1592 const char *base = PyBytes_AS_STRING(wf.str); in PyMarshal_WriteObjectToString()
/third_party/PyYAML/yaml/
D_yaml.h5 #define PyBytes_AS_Yaml_STRING(s) ((yaml_char_t *)PyBytes_AS_STRING(s))
/third_party/python/Objects/stringlib/
Dstringdefs.h20 #define STRINGLIB_STR PyBytes_AS_STRING
Djoin.h68 buffers[i].buf = PyBytes_AS_STRING(item); in STRINGLIB()
/third_party/python/Modules/cjkcodecs/
Dmultibytecodec.c195 PyBytes_AS_STRING(buf->outobj)); in expand_encodebuffer()
207 buf->outbuf = (unsigned char *)PyBytes_AS_STRING(buf->outobj) +orgpos; in expand_encodebuffer()
208 buf->outbuf_end = (unsigned char *)PyBytes_AS_STRING(buf->outobj) in expand_encodebuffer()
353 memcpy(buf->outbuf, PyBytes_AS_STRING(retstr), retstrsize); in multibytecodec_encerror()
518 buf.outbuf = (unsigned char *)PyBytes_AS_STRING(buf.outobj); in multibytecodec_encode()
553 PyBytes_AS_STRING(buf.outobj)); in multibytecodec_encode()
1442 ctrdata = PyBytes_AS_STRING(ctr); in mbstreamreader_iread()
1445 PyBytes_AS_STRING(cres), in mbstreamreader_iread()
1453 if (decoder_prepare_buffer(&buf, PyBytes_AS_STRING(cres), in mbstreamreader_iread()
/third_party/python/Include/cpython/
Dbytesobject.h32 #define PyBytes_AS_STRING(op) (assert(PyBytes_Check(op)), \ macro
/third_party/python/PC/
D_testconsole.c55 const wchar_t *p = (const wchar_t *)PyBytes_AS_STRING(s); in _testconsole_write_input_impl()
/third_party/python/Modules/_multiprocessing/
Dmultiprocessing.c111 nread = recv((SOCKET) handle, PyBytes_AS_STRING(buf), size, 0); in _multiprocessing_recv_impl()
/third_party/python/Programs/
D_freeze_importlib.c115 data = (unsigned char *) PyBytes_AS_STRING(marshalled); in main()
/third_party/python/PC/clinic/
Dmsvcrtmodule.c.h342 char_value = PyBytes_AS_STRING(arg)[0]; in msvcrt_putch()
416 char_value = PyBytes_AS_STRING(arg)[0]; in msvcrt_ungetch()
/third_party/python/Lib/test/
Dclinic.test499 a = PyBytes_AS_STRING(args[0])[0];
512 b = PyBytes_AS_STRING(args[1])[0];
525 c = PyBytes_AS_STRING(args[2])[0];
538 d = PyBytes_AS_STRING(args[3])[0];
551 e = PyBytes_AS_STRING(args[4])[0];
564 f = PyBytes_AS_STRING(args[5])[0];
577 g = PyBytes_AS_STRING(args[6])[0];
590 h = PyBytes_AS_STRING(args[7])[0];
603 i = PyBytes_AS_STRING(args[8])[0];
616 j = PyBytes_AS_STRING(args[9])[0];
[all …]

1234