Home
last modified time | relevance | path

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

12345

/external/python/cpython3/Objects/
Dbytesobject.c485 *p = PyBytes_AS_STRING(arg)[0]; in byte_converter()
534 *pbuf = PyBytes_AS_STRING(v); in format_obj()
559 *pbuf = PyBytes_AS_STRING(result); in format_obj()
569 *pbuf = PyBytes_AS_STRING(result); in format_obj()
914 pbuf = PyBytes_AS_STRING(temp); in _PyBytes_FormatEx()
1234 *s = PyBytes_AS_STRING(obj); in PyBytes_AsStringAndSize()
1394 memcpy(PyBytes_AS_STRING(result), va.buf, va.len); in bytes_concat()
1395 memcpy(PyBytes_AS_STRING(result) + va.len, vb.buf, vb.len); in bytes_concat()
1461 return _Py_bytes_contains(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), arg); in bytes_contains()
1619 PyBytes_AS_STRING(self) + start, in bytes_subscript()
[all …]
Dfileobject.c79 const char *s = PyBytes_AS_STRING(result); in PyFile_GetLine()
389 str = PyBytes_AS_STRING(bytes); in stdprinter_write()
/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/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.c286 name = PyBytes_AS_STRING(stringobj);
745 PyBytes_AS_STRING(result) + bytes_read,
807 ptr = PyBytes_AS_STRING(bytes);
/external/python/cffi/c/
Dcdlopen.c190 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/Modules/
Dzlibmodule.c165 occupied = zst->next_out - (Byte *)PyBytes_AS_STRING(*buffer); in arrange_output_buffer_with_maximum()
184 zst->next_out = (Byte *)PyBytes_AS_STRING(*buffer) + occupied; in arrange_output_buffer_with_maximum()
279 (Byte *)PyBytes_AS_STRING(RetVal)) < 0) in zlib_compress_impl()
425 (Byte *)PyBytes_AS_STRING(RetVal)) < 0) in zlib_decompress_impl()
698 (Byte *)PyBytes_AS_STRING(RetVal)) == 0) in zlib_Compress_compress_impl()
729 memcpy(PyBytes_AS_STRING(new_data), in save_unconsumed_input()
730 PyBytes_AS_STRING(self->unused_data), old_size); in save_unconsumed_input()
731 memcpy(PyBytes_AS_STRING(new_data) + old_size, in save_unconsumed_input()
854 (Byte *)PyBytes_AS_STRING(RetVal)) == 0) in zlib_Decompress_decompress_impl()
938 (Byte *)PyBytes_AS_STRING(RetVal)) < 0) in zlib_Compress_flush_impl()
[all …]
D_bz2module.c150 c->bzs.next_out = PyBytes_AS_STRING(result); in compress()
172 c->bzs.next_out = PyBytes_AS_STRING(result) + data_size; in compress()
409 bzs->next_out = PyBytes_AS_STRING(result); in decompress_buf()
425 data_size = bzs->next_out - PyBytes_AS_STRING(result); in decompress_buf()
441 bzs->next_out = PyBytes_AS_STRING(result) + data_size; in decompress_buf()
D_lzmamodule.c501 c->lzs.next_out = (uint8_t *)PyBytes_AS_STRING(result); in compress()
508 data_size = (char *)c->lzs.next_out - PyBytes_AS_STRING(result); in compress()
520 c->lzs.next_out = (uint8_t *)PyBytes_AS_STRING(result) + data_size; in compress()
878 lzs->next_out = (uint8_t *)PyBytes_AS_STRING(result); in decompress_buf()
886 data_size = (char *)lzs->next_out - PyBytes_AS_STRING(result); in decompress_buf()
907 lzs->next_out = (uint8_t *)PyBytes_AS_STRING(result) + data_size; in decompress_buf()
1349 &filter, (uint8_t *)PyBytes_AS_STRING(result)); in _lzma__encode_filter_properties_impl()
Dreadline.c166 strcpy(copy, PyBytes_AS_STRING(encoded)); in parse_and_bind()
475 break_chars = strdup(PyBytes_AS_STRING(encoded)); in set_completer_delims()
573 old_entry = replace_history_entry(entry_number, PyBytes_AS_STRING(encoded), (void *)NULL); in py_replace_history()
599 add_history(PyBytes_AS_STRING(encoded)); in py_add_history()
783 rl_insert_text(PyBytes_AS_STRING(encoded)); in insert_text()
1007 result = strdup(PyBytes_AS_STRING(encoded)); in on_completion()
D_codecsmodule.c219 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.c262 key.dptr = PyBytes_AS_STRING(arg); in dbm_contains()
467 const char *name = PyBytes_AS_STRING(filenamebytes); in dbmopen_impl()
D_tkinter.c575 const char *list = PyBytes_AS_STRING(arg); in SplitObj()
583 return Split(PyBytes_AS_STRING(arg)); in SplitObj()
779 PyBytes_AS_STRING(utf8_path), in Tkapp_New()
1017 return Tcl_NewByteArrayObj((unsigned char *)PyBytes_AS_STRING(value), in AsObj()
1123 result = Tcl_NewUnicodeObj((const Tcl_UniChar *)PyBytes_AS_STRING(encoded), in AsObj()
1126 result = Tcl_NewStringObj(PyBytes_AS_STRING(encoded), (int)size); in AsObj()
1704 s = PyBytes_AS_STRING(in); in varname_converter()
3568 Tcl_FindExecutable(PyBytes_AS_STRING(cexe)); in PyInit__tkinter()
3575 Tcl_FindExecutable(PyBytes_AS_STRING(cexe)); in PyInit__tkinter()
/external/python/cpython3/Objects/stringlib/clinic/
Dtransmogrify.h.h97 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/
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/
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.c116 name_buf = PyBytes_AS_STRING(name); in _PyImport_LoadDynamicModuleWithSpec()
135 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()
1073 memcpy(PyBytes_AS_STRING(v), ptr, n); in r_object()
1571 wf.ptr = wf.buf = PyBytes_AS_STRING(wf.str); in PyMarshal_WriteObjectToString()
1582 const char *base = PyBytes_AS_STRING(wf.str); in PyMarshal_WriteObjectToString()
/external/python/cpython3/Objects/stringlib/
Dstringdefs.h21 #define STRINGLIB_STR PyBytes_AS_STRING
/external/python/cpython2/Include/
Dbytesobject.h7 #define PyBytes_AS_STRING PyString_AS_STRING macro
/external/python/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c162 PyBytes_AS_STRING(buf->outobj)); in expand_encodebuffer()
174 buf->outbuf = (unsigned char *)PyBytes_AS_STRING(buf->outobj) +orgpos; in expand_encodebuffer()
175 buf->outbuf_end = (unsigned char *)PyBytes_AS_STRING(buf->outobj) in expand_encodebuffer()
320 memcpy(buf->outbuf, PyBytes_AS_STRING(retstr), retstrsize); in multibytecodec_encerror()
485 buf.outbuf = (unsigned char *)PyBytes_AS_STRING(buf.outobj); in multibytecodec_encode()
520 PyBytes_AS_STRING(buf.outobj)); in multibytecodec_encode()
1471 ctrdata = PyBytes_AS_STRING(ctr); in mbstreamreader_iread()
1474 PyBytes_AS_STRING(cres), in mbstreamreader_iread()
1482 if (decoder_prepare_buffer(&buf, PyBytes_AS_STRING(cres), in mbstreamreader_iread()
/external/python/cpython3/Include/cpython/
Dbytesobject.h32 #define PyBytes_AS_STRING(op) (assert(PyBytes_Check(op)), \ macro
/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/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()

12345