/external/python/cpython3/Objects/ |
D | bytesobject.c | 499 *p = PyBytes_AS_STRING(arg)[0]; in byte_converter() 549 *pbuf = PyBytes_AS_STRING(v); in format_obj() 574 *pbuf = PyBytes_AS_STRING(result); in format_obj() 584 *pbuf = PyBytes_AS_STRING(result); in format_obj() 929 pbuf = PyBytes_AS_STRING(temp); in _PyBytes_FormatEx() 1108 PyBytes_AS_STRING(w), in _PyBytes_DecodeEscapeRecode() 1305 *s = PyBytes_AS_STRING(obj); in PyBytes_AsStringAndSize() 1464 memcpy(PyBytes_AS_STRING(result), va.buf, va.len); in bytes_concat() 1465 memcpy(PyBytes_AS_STRING(result) + va.len, vb.buf, vb.len); in bytes_concat() 1531 return _Py_bytes_contains(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), arg); in bytes_contains() [all …]
|
D | fileobject.c | 78 char *s = PyBytes_AS_STRING(result); in PyFile_GetLine() 388 str = PyBytes_AS_STRING(bytes); in stdprinter_write()
|
/external/python/cpython2/Objects/ |
D | bytesobject.c | 492 *p = PyBytes_AS_STRING(arg)[0]; in byte_converter() 542 *pbuf = PyBytes_AS_STRING(v); in format_obj() 567 *pbuf = PyBytes_AS_STRING(result); in format_obj() 577 *pbuf = PyBytes_AS_STRING(result); in format_obj() 925 pbuf = PyBytes_AS_STRING(temp); in _PyBytes_FormatEx() 1112 PyBytes_AS_STRING(w), in _PyBytes_DecodeEscapeRecode() 1309 *s = PyBytes_AS_STRING(obj); in PyBytes_AsStringAndSize() 1466 memcpy(PyBytes_AS_STRING(result), va.buf, va.len); in bytes_concat() 1467 memcpy(PyBytes_AS_STRING(result) + va.len, vb.buf, vb.len); in bytes_concat() 1533 return _Py_bytes_contains(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), arg); in bytes_contains() [all …]
|
/external/python/cpython3/Modules/_io/ |
D | bytesio.c | 72 start = PyBytes_AS_STRING(self->buf) + self->pos; in scan_eol() 98 memcpy(PyBytes_AS_STRING(new_buf), PyBytes_AS_STRING(self->buf), in unshare_buffer() 187 memset(PyBytes_AS_STRING(self->buf) + self->string_size, '\0', in write_bytes() 193 memcpy(PyBytes_AS_STRING(self->buf) + self->pos, bytes, len); in write_bytes() 309 return PyBytes_FromStringAndSize(PyBytes_AS_STRING(self->buf), in _io_BytesIO_getvalue_impl() 371 output = PyBytes_AS_STRING(self->buf) + self->pos; in read_bytes() 492 output = PyBytes_AS_STRING(self->buf) + self->pos; in _io_BytesIO_readlines_impl() 543 memcpy(buffer->buf, PyBytes_AS_STRING(self->buf) + self->pos, len); in _io_BytesIO_readinto_impl() 1070 PyBytes_AS_STRING(b->buf), b->string_size, in bytesiobuf_getbuffer()
|
/external/python/cpython3/Modules/ |
D | zlibmodule.c | 153 occupied = zst->next_out - (Byte *)PyBytes_AS_STRING(*buffer); in arrange_output_buffer_with_maximum() 172 zst->next_out = (Byte *)PyBytes_AS_STRING(*buffer) + occupied; in arrange_output_buffer_with_maximum() 267 (Byte *)PyBytes_AS_STRING(RetVal)) < 0) in zlib_compress_impl() 413 (Byte *)PyBytes_AS_STRING(RetVal)) < 0) in zlib_decompress_impl() 684 (Byte *)PyBytes_AS_STRING(RetVal)) == 0) in zlib_Compress_compress_impl() 715 memcpy(PyBytes_AS_STRING(new_data), in save_unconsumed_input() 716 PyBytes_AS_STRING(self->unused_data), old_size); in save_unconsumed_input() 717 memcpy(PyBytes_AS_STRING(new_data) + old_size, in save_unconsumed_input() 840 (Byte *)PyBytes_AS_STRING(RetVal)) == 0) in zlib_Decompress_decompress_impl() 924 (Byte *)PyBytes_AS_STRING(RetVal)) < 0) in zlib_Compress_flush_impl() [all …]
|
D | _bz2module.c | 152 c->bzs.next_out = PyBytes_AS_STRING(result); in compress() 174 c->bzs.next_out = PyBytes_AS_STRING(result) + data_size; in compress() 411 bzs->next_out = PyBytes_AS_STRING(result); in decompress_buf() 427 data_size = bzs->next_out - PyBytes_AS_STRING(result); in decompress_buf() 443 bzs->next_out = PyBytes_AS_STRING(result) + data_size; in decompress_buf()
|
D | _lzmamodule.c | 505 c->lzs.next_out = (uint8_t *)PyBytes_AS_STRING(result); in compress() 512 data_size = (char *)c->lzs.next_out - PyBytes_AS_STRING(result); in compress() 524 c->lzs.next_out = (uint8_t *)PyBytes_AS_STRING(result) + data_size; in compress() 882 lzs->next_out = (uint8_t *)PyBytes_AS_STRING(result); in decompress_buf() 890 data_size = (char *)lzs->next_out - PyBytes_AS_STRING(result); in decompress_buf() 911 lzs->next_out = (uint8_t *)PyBytes_AS_STRING(result) + data_size; in decompress_buf() 1353 &filter, (uint8_t *)PyBytes_AS_STRING(result)); in _lzma__encode_filter_properties_impl()
|
D | readline.c | 161 strcpy(copy, PyBytes_AS_STRING(encoded)); in parse_and_bind() 470 break_chars = strdup(PyBytes_AS_STRING(encoded)); in set_completer_delims() 568 old_entry = replace_history_entry(entry_number, PyBytes_AS_STRING(encoded), (void *)NULL); in py_replace_history() 594 add_history(PyBytes_AS_STRING(encoded)); in py_add_history() 778 rl_insert_text(PyBytes_AS_STRING(encoded)); in insert_text() 1002 result = strdup(PyBytes_AS_STRING(encoded)); in on_completion()
|
D | _codecsmodule.c | 219 char *p = PyBytes_AS_STRING(v); in _codecs_escape_encode_impl() 223 assert(newsize - (p - PyBytes_AS_STRING(v)) >= 4); in _codecs_escape_encode_impl() 224 c = PyBytes_AS_STRING(data)[i]; in _codecs_escape_encode_impl() 243 if (_PyBytes_Resize(&v, (p - PyBytes_AS_STRING(v)))) { in _codecs_escape_encode_impl()
|
D | _dbmmodule.c | 262 key.dptr = PyBytes_AS_STRING(arg); in dbm_contains() 467 const char *name = PyBytes_AS_STRING(filenamebytes); in dbmopen_impl()
|
D | _gdbmmodule.c | 356 key.dptr = PyBytes_AS_STRING(arg); in dbm_contains() 636 const char *name = PyBytes_AS_STRING(filenamebytes); in dbmopen_impl()
|
/external/python/cffi/c/ |
D | cdlopen.c | 190 char *g = PyBytes_AS_STRING(PyTuple_GET_ITEM(globals, i * 2)); in ffiobj_init() 244 char *s = PyBytes_AS_STRING(PyTuple_GET_ITEM(desc, 0)); in ffiobj_init() 263 char *f = PyBytes_AS_STRING(PyTuple_GET_ITEM(desc, j + 1)); in ffiobj_init() 298 char *e = PyBytes_AS_STRING(PyTuple_GET_ITEM(enums, i)); in ffiobj_init() 324 char *t = PyBytes_AS_STRING(PyTuple_GET_ITEM(typenames, i)); in ffiobj_init()
|
/external/python/cpython3/Objects/stringlib/clinic/ |
D | transmogrify.h.h | 97 fillchar = PyBytes_AS_STRING(args[1])[0]; in stringlib_ljust() 158 fillchar = PyBytes_AS_STRING(args[1])[0]; in stringlib_rjust() 219 fillchar = PyBytes_AS_STRING(args[1])[0]; in stringlib_center()
|
/external/python/cpython2/Modules/ |
D | zlibmodule.c | 157 occupied = zst->next_out - (Byte *)PyBytes_AS_STRING(*buffer); in arrange_output_buffer_with_maximum() 180 zst->next_out = (Byte *)PyBytes_AS_STRING(*buffer) + occupied; in arrange_output_buffer_with_maximum() 268 (Byte *)PyBytes_AS_STRING(RetVal)) < 0) in PyZlib_compress() 372 (Byte *)PyBytes_AS_STRING(RetVal)); in PyZlib_decompress() 518 (Byte *)PyBytes_AS_STRING(RetVal)); in PyZlib_objcompress() 665 (Byte *)PyBytes_AS_STRING(RetVal)); in PyZlib_objdecompress() 748 (Byte *)PyBytes_AS_STRING(RetVal)); in PyZlib_flush() 927 (Byte *)PyBytes_AS_STRING(RetVal)); in PyZlib_unflush()
|
/external/python/cpython3/Python/ |
D | importdl.c | 116 name_buf = PyBytes_AS_STRING(name); in _PyImport_LoadDynamicModuleWithSpec() 135 PyBytes_AS_STRING(pathbytes), in _PyImport_LoadDynamicModuleWithSpec()
|
D | pystrhex.c | 35 sep_char = PyBytes_AS_STRING(sep)[0]; in _Py_strhex_impl()
|
D | marshal.c | 133 p->buf = PyBytes_AS_STRING(p->str); in w_reserve() 426 w_pstring(PyBytes_AS_STRING(v), PyBytes_GET_SIZE(v), p); in w_complex_object() 460 w_pstring(PyBytes_AS_STRING(utf8), PyBytes_GET_SIZE(utf8), p); in w_complex_object() 1098 memcpy(PyBytes_AS_STRING(v), ptr, n); in r_object() 1590 wf.ptr = wf.buf = PyBytes_AS_STRING((PyBytesObject *)wf.str); in PyMarshal_WriteObjectToString() 1601 char *base = PyBytes_AS_STRING((PyBytesObject *)wf.str); in PyMarshal_WriteObjectToString()
|
/external/python/cpython3/Objects/stringlib/ |
D | stringdefs.h | 21 #define STRINGLIB_STR PyBytes_AS_STRING
|
/external/python/cpython2/Include/ |
D | bytesobject.h | 7 #define PyBytes_AS_STRING PyString_AS_STRING macro
|
/external/python/cpython3/Modules/cjkcodecs/ |
D | multibytecodec.c | 172 PyBytes_AS_STRING(buf->outobj)); in expand_encodebuffer() 184 buf->outbuf = (unsigned char *)PyBytes_AS_STRING(buf->outobj) +orgpos; in expand_encodebuffer() 185 buf->outbuf_end = (unsigned char *)PyBytes_AS_STRING(buf->outobj) in expand_encodebuffer() 330 memcpy(buf->outbuf, PyBytes_AS_STRING(retstr), retstrsize); in multibytecodec_encerror() 495 buf.outbuf = (unsigned char *)PyBytes_AS_STRING(buf.outobj); in multibytecodec_encode() 530 PyBytes_AS_STRING(buf.outobj)); in multibytecodec_encode() 1481 ctrdata = PyBytes_AS_STRING(ctr); in mbstreamreader_iread() 1484 PyBytes_AS_STRING(cres), in mbstreamreader_iread() 1492 if (decoder_prepare_buffer(&buf, PyBytes_AS_STRING(cres), in mbstreamreader_iread()
|
/external/python/cpython3/PC/ |
D | _testconsole.c | 55 const wchar_t *p = (const wchar_t *)PyBytes_AS_STRING(s); in _testconsole_write_input_impl()
|
/external/python/cpython2/Modules/_io/ |
D | textio.c | 721 PyBytes_AS_STRING(self->errors)); in ascii_encode() 729 PyBytes_AS_STRING(self->errors), 1); in utf16be_encode() 737 PyBytes_AS_STRING(self->errors), -1); in utf16le_encode() 753 PyBytes_AS_STRING(self->errors), 0); in utf16_encode() 761 PyBytes_AS_STRING(self->errors), 1); in utf32be_encode() 769 PyBytes_AS_STRING(self->errors), -1); in utf32le_encode() 785 PyBytes_AS_STRING(self->errors), 0); in utf32_encode() 793 PyBytes_AS_STRING(self->errors)); in utf8_encode() 801 PyBytes_AS_STRING(self->errors)); in latin1_encode() 2275 input = PyBytes_AS_STRING(next_input); in textiowrapper_tell()
|
D | fileio.c | 289 name = PyBytes_AS_STRING(stringobj); in fileio_init() 611 PyBytes_AS_STRING(result) + total, in fileio_readall() 615 PyBytes_AS_STRING(result) + total, in fileio_readall() 678 ptr = PyBytes_AS_STRING(bytes); in fileio_read()
|
/external/python/cpython3/Include/ |
D | bytesobject.h | 87 #define PyBytes_AS_STRING(op) (assert(PyBytes_Check(op)), \ macro
|
/external/python/cpython3/Programs/ |
D | _freeze_importlib.c | 115 data = (unsigned char *) PyBytes_AS_STRING(marshalled); in main()
|