/external/python/cpython3/Include/internal/ |
D | pycore_blocks_output_buffer.h | 141 *next_out = PyBytes_AS_STRING(b); in _BlocksOutputBuffer_InitAndGrow() 182 *next_out = PyBytes_AS_STRING(b); in _BlocksOutputBuffer_InitWithSize() 247 *next_out = PyBytes_AS_STRING(b); in _BlocksOutputBuffer_Grow() 291 char *posi = PyBytes_AS_STRING(result); in _BlocksOutputBuffer_Finish() 297 memcpy(posi, PyBytes_AS_STRING(block), Py_SIZE(block)); in _BlocksOutputBuffer_Finish() 302 memcpy(posi, PyBytes_AS_STRING(block), Py_SIZE(block) - avail_out); in _BlocksOutputBuffer_Finish()
|
/external/python/cpython3/Include/cpython/ |
D | bytesobject.h | 23 static inline char* PyBytes_AS_STRING(PyObject *op) in PyBytes_AS_STRING() function 27 #define PyBytes_AS_STRING(op) PyBytes_AS_STRING(_PyObject_CAST(op)) macro
|
/external/python/cpython3/Objects/ |
D | bytesobject.c | 481 *p = PyBytes_AS_STRING(arg)[0]; in byte_converter() 520 *pbuf = PyBytes_AS_STRING(v); in format_obj() 543 *pbuf = PyBytes_AS_STRING(result); in format_obj() 553 *pbuf = PyBytes_AS_STRING(result); in format_obj() 898 pbuf = PyBytes_AS_STRING(temp); in _PyBytes_FormatEx() 1237 *s = PyBytes_AS_STRING(obj); in PyBytes_AsStringAndSize() 1435 memcpy(PyBytes_AS_STRING(result), va.buf, va.len); in bytes_concat() 1436 memcpy(PyBytes_AS_STRING(result) + va.len, vb.buf, vb.len); in bytes_concat() 1492 return _Py_bytes_contains(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), arg); in bytes_contains() 1635 PyBytes_AS_STRING(self) + start, in bytes_subscript() [all …]
|
D | codeobject.c | 436 !_Py_IS_ALIGNED(PyBytes_AS_STRING(con->code), sizeof(_Py_CODEUNIT)) in _PyCode_Validate() 524 memcpy(_PyCode_CODE(co), PyBytes_AS_STRING(con->code), in init_code() 588 const uint8_t *data = (const uint8_t *)PyBytes_AS_STRING(locations); in remove_column_info() 594 uint8_t *output = (uint8_t *)PyBytes_AS_STRING(res); in remove_column_info() 596 Py_ssize_t write_offset = output - (uint8_t *)PyBytes_AS_STRING(res); in remove_column_info() 601 output = (uint8_t *)PyBytes_AS_STRING(res) + write_offset; in remove_column_info() 620 Py_ssize_t write_offset = output - (uint8_t *)PyBytes_AS_STRING(res); in remove_column_info() 776 _Py_CODEUNIT *code_data = (_Py_CODEUNIT *)PyBytes_AS_STRING(code); in PyUnstable_Code_NewWithPosOnlyArgs() 838 assert(_Py_IS_ALIGNED(PyBytes_AS_STRING(code), sizeof(_Py_CODEUNIT))); in PyUnstable_Code_NewWithPosOnlyArgs() 979 const char *linetable = PyBytes_AS_STRING(co->co_linetable); in _PyCode_InitAddressRange() [all …]
|
D | fileobject.c | 75 const char *s = PyBytes_AS_STRING(result); in PyFile_GetLine() 336 str = PyBytes_AS_STRING(bytes); in stdprinter_write()
|
/external/python/cpython3/Modules/_io/ |
D | bytesio.c | 91 start = PyBytes_AS_STRING(self->buf) + self->pos; in scan_eol() 117 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() 349 return PyBytes_FromStringAndSize(PyBytes_AS_STRING(self->buf), in _io_BytesIO_getvalue_impl() 409 output = PyBytes_AS_STRING(self->buf) + self->pos; in read_bytes() 530 output = PyBytes_AS_STRING(self->buf) + self->pos; in _io_BytesIO_readlines_impl() 581 memcpy(buffer->buf, PyBytes_AS_STRING(self->buf) + self->pos, len); in _io_BytesIO_readinto_impl() 1084 PyBytes_AS_STRING(b->buf), b->string_size, in bytesiobuf_getbuffer()
|
/external/python/cpython3/Modules/ |
D | readline.c | 226 strcpy(copy, PyBytes_AS_STRING(encoded)); in readline_parse_and_bind() 254 errno = rl_read_init_file(PyBytes_AS_STRING(filename_bytes)); in readline_read_init_file_impl() 285 errno = read_history(PyBytes_AS_STRING(filename_bytes)); in readline_read_history_file_impl() 319 filename = PyBytes_AS_STRING(filename_bytes); in readline_write_history_file_impl() 360 filename = PyBytes_AS_STRING(filename_bytes); in readline_append_history_file_impl() 590 break_chars = strdup(PyBytes_AS_STRING(encoded)); in readline_set_completer_delims() 704 PyBytes_AS_STRING(encoded), (void *)NULL); in readline_replace_history_item_impl() 736 add_history(PyBytes_AS_STRING(encoded)); in readline_add_history() 950 rl_insert_text(PyBytes_AS_STRING(encoded)); in readline_insert_text() 1177 result = strdup(PyBytes_AS_STRING(encoded)); in on_completion()
|
D | _codecsmodule.c | 222 char *p = PyBytes_AS_STRING(v); in _codecs_escape_encode_impl() 226 assert(newsize - (p - PyBytes_AS_STRING(v)) >= 4); in _codecs_escape_encode_impl() 227 c = PyBytes_AS_STRING(data)[i]; in _codecs_escape_encode_impl() 246 if (_PyBytes_Resize(&v, (p - PyBytes_AS_STRING(v)))) { in _codecs_escape_encode_impl()
|
D | zlibmodule.c | 826 memcpy(PyBytes_AS_STRING(new_data), in save_unconsumed_input() 827 PyBytes_AS_STRING(self->unused_data), old_size); in save_unconsumed_input() 828 memcpy(PyBytes_AS_STRING(new_data) + old_size, in save_unconsumed_input() 1415 occupied = *next_out - (uint8_t *)PyBytes_AS_STRING(*buffer); in arrange_output_buffer_with_maximum() 1434 *next_out = (uint8_t *)PyBytes_AS_STRING(*buffer) + occupied; in arrange_output_buffer_with_maximum() 1531 (uint8_t *)PyBytes_AS_STRING(return_value)) != 0) { in decompress_buf()
|
/external/python/cpython3/Objects/stringlib/clinic/ |
D | transmogrify.h.h | 117 fillchar = PyBytes_AS_STRING(args[1])[0]; in stringlib_ljust() 173 fillchar = PyBytes_AS_STRING(args[1])[0]; in stringlib_rjust() 229 fillchar = PyBytes_AS_STRING(args[1])[0]; in stringlib_center()
|
/external/pytorch/torch/csrc/utils/ |
D | python_strings.h | 24 return std::string(PyBytes_AS_STRING(obj), size); in THPUtils_unpackString() 48 return c10::string_view(PyBytes_AS_STRING(obj), size); in THPUtils_unpackStringView()
|
/external/python/cpython3/Python/ |
D | pystrhex.c | 31 sep_char = PyBytes_AS_STRING(sep)[0]; in _Py_strhex_impl() 71 retbuf = (Py_UCS1 *)PyBytes_AS_STRING(retval); in _Py_strhex_impl()
|
D | assemble.c | 100 unsigned char *p = (unsigned char *) PyBytes_AS_STRING(a->a_except_table); in write_except_byte() 199 PyBytes_AS_STRING(a->a_linetable)[a->a_location_off] = val&255; in write_location_byte() 207 return (uint8_t *)PyBytes_AS_STRING(a->a_linetable) + in location_pointer() 416 code = (_Py_CODEUNIT *)PyBytes_AS_STRING(a->a_bytecode) + a->a_offset; in assemble_emit_instr()
|
D | importdl.c | 384 const char *name_buf = PyBytes_AS_STRING(info->name_encoded); in _PyImport_GetModInitFunc() 391 const char *path_buf = PyBytes_AS_STRING(info->filename_encoded); in _PyImport_GetModInitFunc()
|
/external/python/cpython3/Modules/_sqlite/ |
D | blob.c | 147 char *raw_buffer = PyBytes_AS_STRING(buffer); in read_multiple() 441 char *blob_buf = PyBytes_AS_STRING(blob); in subscript_slice() 442 char *res_buf = PyBytes_AS_STRING(result); in subscript_slice() 536 char *blob_buf = PyBytes_AS_STRING(blob_bytes); in ass_subscript_slice()
|
/external/python/pyyaml/yaml/ |
D | _yaml.h | 5 #define PyBytes_AS_Yaml_STRING(s) ((yaml_char_t *)PyBytes_AS_STRING(s))
|
/external/python/cpython3/Objects/stringlib/ |
D | stringdefs.h | 20 #define STRINGLIB_STR PyBytes_AS_STRING
|
D | join.h | 67 buffers[i].buf = PyBytes_AS_STRING(item); in STRINGLIB()
|
/external/python/cpython3/Modules/cjkcodecs/ |
D | multibytecodec.c | 199 PyBytes_AS_STRING(buf->outobj)); in expand_encodebuffer() 211 buf->outbuf = (unsigned char *)PyBytes_AS_STRING(buf->outobj) +orgpos; in expand_encodebuffer() 212 buf->outbuf_end = (unsigned char *)PyBytes_AS_STRING(buf->outobj) in expand_encodebuffer() 356 memcpy(buf->outbuf, PyBytes_AS_STRING(retstr), retstrsize); in multibytecodec_encerror() 519 buf.outbuf = (unsigned char *)PyBytes_AS_STRING(buf.outobj); in multibytecodec_encode() 554 PyBytes_AS_STRING(buf.outobj)); in multibytecodec_encode() 1297 PyBytes_AS_STRING(buffer), buffersize, in _multibytecodec_MultibyteIncrementalDecoder_setstate_impl() 1477 ctrdata = PyBytes_AS_STRING(ctr); in mbstreamreader_iread() 1480 PyBytes_AS_STRING(cres), in mbstreamreader_iread() 1487 if (decoder_prepare_buffer(&buf, PyBytes_AS_STRING(cres), in mbstreamreader_iread()
|
/external/python/cpython3/Modules/clinic/ |
D | _testclinic.c.h | 238 a = PyBytes_AS_STRING(args[0])[0]; in char_converter() 251 b = PyBytes_AS_STRING(args[1])[0]; in char_converter() 264 c = PyBytes_AS_STRING(args[2])[0]; in char_converter() 277 d = PyBytes_AS_STRING(args[3])[0]; in char_converter() 290 e = PyBytes_AS_STRING(args[4])[0]; in char_converter() 303 f = PyBytes_AS_STRING(args[5])[0]; in char_converter() 316 g = PyBytes_AS_STRING(args[6])[0]; in char_converter() 329 h = PyBytes_AS_STRING(args[7])[0]; in char_converter() 342 i = PyBytes_AS_STRING(args[8])[0]; in char_converter() 355 j = PyBytes_AS_STRING(args[9])[0]; in char_converter() [all …]
|
/external/pytorch/torch/csrc/ |
D | StorageSharing.cpp | 173 const char* manager_handle = PyBytes_AS_STRING(_manager_handle); in THPStorage_newSharedFilename() 174 const char* object_handle = PyBytes_AS_STRING(_object_handle); in THPStorage_newSharedFilename() 392 std::string ref_counter_handle = PyBytes_AS_STRING(_ref_counter); in THPStorage_releaseIPCCounter() 492 std::string ref_counter_handle = PyBytes_AS_STRING(_ref_counter); in THPStorage_newSharedCuda()
|
/external/python/cpython3/Parser/tokenizer/ |
D | string_tokenizer.c | 103 str = PyBytes_AS_STRING(utf8); in decode_str()
|
D | readline_tokenizer.c | 27 line = PyUnicode_Decode(PyBytes_AS_STRING(raw_line), PyBytes_GET_SIZE(raw_line), in tok_readline_string()
|
/external/python/cpython3/Modules/_multiprocessing/ |
D | multiprocessing.c | 120 nread = recv((SOCKET) handle, PyBytes_AS_STRING(buf), size, 0); in _multiprocessing_recv_impl()
|
/external/python/cpython3/PC/clinic/ |
D | msvcrtmodule.c.h | 359 char_value = PyBytes_AS_STRING(arg)[0]; in msvcrt_putch() 434 char_value = PyBytes_AS_STRING(arg)[0]; in msvcrt_ungetch()
|