/external/python/cpython3/Modules/_io/ |
D | bytesio.c | 15 Py_ssize_t string_size; member 62 if (self->pos >= self->string_size) in scan_eol() 66 maxlen = self->string_size - self->pos; in scan_eol() 93 assert(size >= (size_t)self->string_size); in unshare_buffer() 98 self->string_size); in unshare_buffer() 173 if (unshare_buffer(self, Py_MAX(endpos, (size_t)self->string_size)) < 0) in write_bytes() 177 if (self->pos > self->string_size) { in write_bytes() 186 memset(PyBytes_AS_STRING(self->buf) + self->string_size, '\0', in write_bytes() 187 (self->pos - self->string_size) * sizeof(char)); in write_bytes() 196 if ((size_t)self->string_size < endpos) { in write_bytes() [all …]
|
D | stringio.c | 24 Py_ssize_t string_size; member 219 if (self->string_size == self->pos) { in write_str() 228 if (self->pos + len > self->string_size) { in write_str() 233 if (self->pos > self->string_size) { in write_str() 243 memset(self->buf + self->string_size, '\0', in write_str() 244 (self->pos - self->string_size) * sizeof(Py_UCS4)); in write_str() 258 if (self->string_size < self->pos) in write_str() 259 self->string_size = self->pos; in write_str() 284 self->string_size); in _io_StringIO_getvalue_impl() 324 n = self->string_size - self->pos; in _io_StringIO_read_impl() [all …]
|
/external/python/cpython2/Modules/ |
D | cStringIO.c | 47 Py_ssize_t pos, string_size; member 57 Py_ssize_t pos, string_size; member 68 Py_ssize_t pos, string_size; member 139 if (s > self->string_size) s=self->string_size; in IO_getval() 142 s=self->string_size; in IO_getval() 165 assert(IOOOBJECT(self)->string_size >= 0); in IO_cread() 166 l = ((IOobject*)self)->string_size - ((IOobject*)self)->pos; in IO_cread() 204 end = ((IOobject*)self)->buf + ((IOobject*)self)->string_size; in IO_creadline() 218 assert(IOOOBJECT(self)->string_size >= 0); in IO_creadline() 326 if (self->string_size > pos) self->string_size = pos; in IO_truncate() [all …]
|
/external/python/cpython2/Modules/_io/ |
D | stringio.c | 14 Py_ssize_t string_size; member 148 if (self->pos + len > self->string_size) { in write_str() 153 if (self->pos > self->string_size) { in write_str() 163 memset(self->buf + self->string_size, '\0', in write_str() 164 (self->pos - self->string_size) * sizeof(Py_UNICODE)); in write_str() 173 if (self->string_size < self->pos) { in write_str() 174 self->string_size = self->pos; in write_str() 193 return PyUnicode_FromUnicode(self->buf, self->string_size); in stringio_getvalue() 241 n = self->string_size - self->pos; in stringio_read() 261 if (self->pos >= self->string_size) in _stringio_readline() [all …]
|
D | bytesio.c | 9 Py_ssize_t string_size; member 35 str_end = self->buf + self->string_size; in get_line() 122 if (self->pos > self->string_size) { in write_bytes() 131 memset(self->buf + self->string_size, '\0', in write_bytes() 132 (self->pos - self->string_size) * sizeof(char)); in write_bytes() 141 if (self->string_size < self->pos) { in write_bytes() 142 self->string_size = self->pos; in write_bytes() 195 return PyBytes_FromStringAndSize(self->buf, self->string_size); in bytesio_getvalue() 255 n = self->string_size - self->pos; in bytesio_read() 413 n = self->string_size - self->pos; in bytesio_readinto() [all …]
|
/external/google-breakpad/src/common/linux/ |
D | elf_symbols_to_module.cc | 140 size_t string_size, in ELFSymbolsToModule() argument 146 if (string_section[string_size - 1] != '\0') { in ELFSymbolsToModule() 147 const void* null_terminator = memrchr(string_section, '\0', string_size); in ELFSymbolsToModule() 148 string_size = reinterpret_cast<const uint8_t*>(null_terminator) in ELFSymbolsToModule() 151 ByteBuffer strings(string_section, string_size); in ELFSymbolsToModule()
|
D | elf_symbols_to_module.h | 50 size_t string_size,
|
/external/libxkbcommon/xkbcommon/src/compose/ |
D | paths.c | 56 size_t string_size; in resolve_name() local 71 ok = map_file(file, &string, &string_size); in resolve_name() 77 end = string + string_size; in resolve_name() 131 unmap_file(string, string_size); in resolve_name()
|
/external/freetype/src/type42/ |
D | t42parse.c | 547 FT_ULong n, string_size, old_string_size, real_size; in t42_parse_sfnts() local 579 string_size = 0; in t42_parse_sfnts() 603 string_size = (FT_ULong)( ( parser->root.cursor - cur - 2 + 1 ) / 2 ); in t42_parse_sfnts() 604 if ( !string_size ) in t42_parse_sfnts() 610 if ( FT_REALLOC( string_buf, old_string_size, string_size ) ) in t42_parse_sfnts() 616 (void)T1_ToBytes( parser, string_buf, string_size, &real_size, 1 ); in t42_parse_sfnts() 617 old_string_size = string_size; in t42_parse_sfnts() 618 string_size = real_size; in t42_parse_sfnts() 642 string_size = (FT_ULong)tmp; in t42_parse_sfnts() 650 if ( (FT_ULong)( limit - parser->root.cursor ) <= string_size ) in t42_parse_sfnts() [all …]
|
/external/tcpdump/ |
D | util-print.c | 526 size_t space_left = sizeof(buf), string_size; in bittok2str_internal() local 543 string_size = strlcpy(bufp, sepstr, space_left); in bittok2str_internal() 544 if (string_size >= space_left) in bittok2str_internal() 546 bufp += string_size; in bittok2str_internal() 547 space_left -= string_size; in bittok2str_internal() 550 string_size = strlcpy(bufp, lp->s, space_left); in bittok2str_internal() 551 if (string_size >= space_left) in bittok2str_internal() 553 bufp += string_size; in bittok2str_internal() 554 space_left -= string_size; in bittok2str_internal()
|
/external/webrtc/webrtc/system_wrappers/source/ |
D | data_log_unittest.cc | 221 std::string string_size[kNumberOfRows] = { in TEST() local 238 std::vector<std::string>(string_size, in TEST() 239 string_size + kNumberOfRows), in TEST() 275 std::vector<std::string>(string_size, in TEST() 276 string_size + in TEST()
|
/external/freetype/src/pcf/ |
D | pcfread.c | 489 FT_ULong string_size; in pcf_get_properties() local 586 (void)FT_READ_ULONG( string_size ); in pcf_get_properties() 588 (void)FT_READ_ULONG_LE( string_size ); in pcf_get_properties() 592 FT_TRACE4(( " string size: %ld\n", string_size )); in pcf_get_properties() 595 if ( string_size > size - orig_nprops * PCF_PROPERTY_SIZE ) in pcf_get_properties() 603 if ( string_size > 16777472 ) /* 256 * (65536 + 1) */ in pcf_get_properties() 607 string_size = 16777472; in pcf_get_properties() 611 if ( FT_NEW_ARRAY( strings, string_size + 1 ) ) in pcf_get_properties() 614 error = FT_Stream_Read( stream, (FT_Byte*)strings, string_size ); in pcf_get_properties() 630 ( (FT_ULong)name_offset > string_size ) ) in pcf_get_properties() [all …]
|
/external/bcc/tools/ |
D | trace.py | 53 def __init__(self, probe, string_size, kernel_stack, user_stack): argument 57 self.string_size = string_size 297 ptype = ct.c_char * self.string_size 337 return "char v%d[%d];\n" % (idx, self.string_size) 721 probe_spec, self.args.string_size,
|
D | argdist.py | 658 """ % self.args.string_size
|
/external/u-boot/tools/ |
D | image-host.c | 111 int string_size; in fit_image_write_sig() local 118 string_size = fdt_size_dt_strings(fit); in fit_image_write_sig() 139 strdata[1] = cpu_to_fdt32(string_size); in fit_image_write_sig()
|
/external/vixl/test/aarch32/ |
D | test-assembler-aarch32.cc | 1177 const int string_size = AlignUp(ldrd_range + kMaxInstructionSizeInBytes, 4); in TEST() local 1178 std::string test_string(string_size, 'x'); in TEST() 1226 const int string_size = AlignUp(ldrd_range + kMaxInstructionSizeInBytes, 4); in TEST() local 1227 std::string test_string(string_size, 'x'); in TEST() 1278 const int string_size = AlignUp(ldrd_range + kMaxInstructionSizeInBytes, 4); in EmitReusedLoadLiteralStressTest() local 1279 std::string test_string(string_size, 'x'); in EmitReusedLoadLiteralStressTest() 1521 const int string_size = AlignUp(ldrd_range + kMaxInstructionSizeInBytes, 4); in TEST() local 1522 std::string test_string(string_size, 'x'); in TEST() 1565 const int string_size = AlignUp(ldrd_range + kMaxInstructionSizeInBytes, 4); in TEST() local 1566 std::string test_string(string_size, 'x'); in TEST() [all …]
|
/external/v8/src/runtime/ |
D | runtime-regexp.cc | 769 int string_size = ResultSeqString::SizeFor(position); in StringReplaceGlobalRegExpWithEmptyString() local 771 int delta = allocated_string_size - string_size; in StringReplaceGlobalRegExpWithEmptyString() 776 Address end_of_string = answer->address() + string_size; in StringReplaceGlobalRegExpWithEmptyString()
|
/external/selinux/mcstrans/src/ |
D | mcstrans.c | 956 string_size(const void *p1, const void *p2) { in string_size() function 1008 qsort(sortable, n_el, sizeof(char *), string_size); in build_regexps()
|
/external/v8/src/objects/ |
D | bigint.cc | 2088 int string_size = in ToStringGeneric() local 2091 if (needed_size < string_size) { in ToStringGeneric() 2093 heap->CreateFillerObjectAt(new_end, (string_size - needed_size), in ToStringGeneric()
|
/external/freetype/ |
D | ChangeLog.23 | 1084 of TT_BDF->string_size is extended from FT_UInt32 1088 to load TT_BDF->string_size is matched with 1089 TT_BDF->string_size. 5612 Handle string_size == 0 and string_buf == 0.
|
D | ChangeLog.24 | 2533 * src/type42/t42parse.c (t42_parse_sfnts): Check `string_size' more 5515 string_size.
|
D | ChangeLog.25 | 69 * src/type42/t42parse.c (t42_parse_sfnts): Check `string_size'.
|
D | ChangeLog.21 | 4071 * src/type42/t42parse.c (t42_parse_sfnts): Initialize `string_size'.
|