Home
last modified time | relevance | path

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

1234

/external/python/cpython2/Objects/
Dbytesobject.c492 *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/Objects/
Dbytesobject.c498 *p = PyBytes_AS_STRING(arg)[0]; in byte_converter()
548 *pbuf = PyBytes_AS_STRING(v); in format_obj()
573 *pbuf = PyBytes_AS_STRING(result); in format_obj()
583 *pbuf = PyBytes_AS_STRING(result); in format_obj()
931 pbuf = PyBytes_AS_STRING(temp); in _PyBytes_FormatEx()
1118 PyBytes_AS_STRING(w), in _PyBytes_DecodeEscapeRecode()
1315 *s = PyBytes_AS_STRING(obj); in PyBytes_AsStringAndSize()
1472 memcpy(PyBytes_AS_STRING(result), va.buf, va.len); in bytes_concat()
1473 memcpy(PyBytes_AS_STRING(result) + va.len, vb.buf, vb.len); in bytes_concat()
1539 return _Py_bytes_contains(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), arg); in bytes_contains()
[all …]
Dfileobject.c76 char *s = PyBytes_AS_STRING(result); in PyFile_GetLine()
380 str = PyBytes_AS_STRING(bytes); in stdprinter_write()
Dunicodeobject.c3097 PyBytes_AS_STRING(obj), PyBytes_GET_SIZE(obj), in PyUnicode_FromEncodedObject()
3727 data = PyBytes_AS_STRING(output); in PyUnicode_FSConverter()
3784 output = PyUnicode_DecodeFSDefaultAndSize(PyBytes_AS_STRING(path_bytes), in PyUnicode_FSDecoder()
3838 PyBytes_AS_STRING(bytes), in PyUnicode_AsUTF8AndSize()
4158 *input = PyBytes_AS_STRING(inputobj); in unicode_decode_call_errorhandler_wchar()
4261 *input = PyBytes_AS_STRING(inputobj); in unicode_decode_call_errorhandler_writer()
4633 start = out = PyBytes_AS_STRING(v); in _PyUnicode_EncodeUTF7()
5427 assert(_Py_IS_ALIGNED(PyBytes_AS_STRING(v), 4)); in _PyUnicode_EncodeUTF32()
5428 out = (uint32_t *)PyBytes_AS_STRING(v); in _PyUnicode_EncodeUTF32()
5494 Py_ssize_t outpos = out - (uint32_t*) PyBytes_AS_STRING(v); in _PyUnicode_EncodeUTF32()
[all …]
/external/python/cpython3/Modules/_io/
Dbytesio.c71 start = PyBytes_AS_STRING(self->buf) + self->pos; in scan_eol()
97 memcpy(PyBytes_AS_STRING(new_buf), PyBytes_AS_STRING(self->buf), in unshare_buffer()
186 memset(PyBytes_AS_STRING(self->buf) + self->string_size, '\0', in write_bytes()
192 memcpy(PyBytes_AS_STRING(self->buf) + self->pos, bytes, len); in write_bytes()
308 return PyBytes_FromStringAndSize(PyBytes_AS_STRING(self->buf), in _io_BytesIO_getvalue_impl()
370 output = PyBytes_AS_STRING(self->buf) + self->pos; in read_bytes()
491 output = PyBytes_AS_STRING(self->buf) + self->pos; in _io_BytesIO_readlines_impl()
542 memcpy(buffer->buf, PyBytes_AS_STRING(self->buf) + self->pos, len); in _io_BytesIO_readinto_impl()
1064 PyBytes_AS_STRING(b->buf), b->string_size, in bytesiobuf_getbuffer()
Dfileio.c284 name = PyBytes_AS_STRING(stringobj);
739 PyBytes_AS_STRING(result) + bytes_read,
801 ptr = PyBytes_AS_STRING(bytes);
/external/python/cpython3/Modules/
Dzlibmodule.c153 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()
411 (Byte *)PyBytes_AS_STRING(RetVal)) < 0) in zlib_decompress_impl()
682 (Byte *)PyBytes_AS_STRING(RetVal)) == 0) in zlib_Compress_compress_impl()
713 memcpy(PyBytes_AS_STRING(new_data), in save_unconsumed_input()
714 PyBytes_AS_STRING(self->unused_data), old_size); in save_unconsumed_input()
715 memcpy(PyBytes_AS_STRING(new_data) + old_size, in save_unconsumed_input()
838 (Byte *)PyBytes_AS_STRING(RetVal)) == 0) in zlib_Decompress_decompress_impl()
922 (Byte *)PyBytes_AS_STRING(RetVal)) < 0) in zlib_Compress_flush_impl()
[all …]
D_bz2module.c152 c->bzs.next_out = PyBytes_AS_STRING(result); in compress()
174 c->bzs.next_out = PyBytes_AS_STRING(result) + data_size; in compress()
420 bzs->next_out = PyBytes_AS_STRING(result); in decompress_buf()
436 data_size = bzs->next_out - PyBytes_AS_STRING(result); in decompress_buf()
452 bzs->next_out = PyBytes_AS_STRING(result) + data_size; in decompress_buf()
Dreadline.c162 strcpy(copy, PyBytes_AS_STRING(encoded)); in parse_and_bind()
471 break_chars = strdup(PyBytes_AS_STRING(encoded)); in set_completer_delims()
569 old_entry = replace_history_entry(entry_number, PyBytes_AS_STRING(encoded), (void *)NULL); in py_replace_history()
595 add_history(PyBytes_AS_STRING(encoded)); in py_add_history()
781 rl_insert_text(PyBytes_AS_STRING(encoded)); in insert_text()
1005 result = strdup(PyBytes_AS_STRING(encoded)); in on_completion()
D_lzmamodule.c505 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()
894 lzs->next_out = (uint8_t *)PyBytes_AS_STRING(result); in decompress_buf()
902 data_size = (char *)lzs->next_out - PyBytes_AS_STRING(result); in decompress_buf()
918 lzs->next_out = (uint8_t *)PyBytes_AS_STRING(result) + data_size; in decompress_buf()
1355 &filter, (uint8_t *)PyBytes_AS_STRING(result)); in _lzma__encode_filter_properties_impl()
D_codecsmodule.c220 char *p = PyBytes_AS_STRING(v); in _codecs_escape_encode_impl()
224 assert(newsize - (p - PyBytes_AS_STRING(v)) >= 4); in _codecs_escape_encode_impl()
225 c = PyBytes_AS_STRING(data)[i]; in _codecs_escape_encode_impl()
244 if (_PyBytes_Resize(&v, (p - PyBytes_AS_STRING(v)))) { in _codecs_escape_encode_impl()
D_dbmmodule.c253 key.dptr = PyBytes_AS_STRING(arg); in dbm_contains()
458 const char *name = PyBytes_AS_STRING(filenamebytes); in dbmopen_impl()
D_gdbmmodule.c333 key.dptr = PyBytes_AS_STRING(arg); in dbm_contains()
614 const char *name = PyBytes_AS_STRING(filenamebytes); in dbmopen_impl()
/external/python/cpython2/Modules/
Dzlibmodule.c157 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/
Dimportdl.c116 name_buf = PyBytes_AS_STRING(name); in _PyImport_LoadDynamicModuleWithSpec()
130 PyBytes_AS_STRING(pathbytes), in _PyImport_LoadDynamicModuleWithSpec()
Dmarshal.c133 p->buf = PyBytes_AS_STRING(p->str); in w_reserve()
445 w_pstring(PyBytes_AS_STRING(v), PyBytes_GET_SIZE(v), p); in w_complex_object()
479 w_pstring(PyBytes_AS_STRING(utf8), PyBytes_GET_SIZE(utf8), p); in w_complex_object()
1134 memcpy(PyBytes_AS_STRING(v), ptr, n); in r_object()
1621 wf.ptr = wf.buf = PyBytes_AS_STRING((PyBytesObject *)wf.str); in PyMarshal_WriteObjectToString()
1632 char *base = PyBytes_AS_STRING((PyBytesObject *)wf.str); in PyMarshal_WriteObjectToString()
/external/python/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c172 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()
1310 ctrdata = PyBytes_AS_STRING(ctr); in mbstreamreader_iread()
1313 PyBytes_AS_STRING(cres), in mbstreamreader_iread()
1321 if (decoder_prepare_buffer(&buf, PyBytes_AS_STRING(cres), in mbstreamreader_iread()
/external/python/cpython3/Objects/stringlib/
Dstringdefs.h21 #define STRINGLIB_STR PyBytes_AS_STRING
Djoin.h65 buffers[i].buf = PyBytes_AS_STRING(item); in STRINGLIB()
/external/python/cpython2/Include/
Dbytesobject.h7 #define PyBytes_AS_STRING PyString_AS_STRING macro
/external/python/cpython2/Modules/_io/
Dtextio.c721 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()
Dfileio.c289 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/PC/
D_testconsole.c55 const wchar_t *p = (const wchar_t *)PyBytes_AS_STRING(s); in _testconsole_write_input_impl()
/external/python/cpython3/Include/
Dbytesobject.h87 #define PyBytes_AS_STRING(op) (assert(PyBytes_Check(op)), \ macro
/external/python/cpython3/Programs/
D_freeze_importlib.c115 data = (unsigned char *) PyBytes_AS_STRING(marshalled); in main()

1234