/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() 339 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 | 540 FT_ULong n, string_size, old_string_size, real_size; in t42_parse_sfnts() local 572 string_size = 0; in t42_parse_sfnts() 596 string_size = (FT_ULong)( ( parser->root.cursor - cur - 2 + 1 ) / 2 ); in t42_parse_sfnts() 597 if ( !string_size ) in t42_parse_sfnts() 603 if ( FT_REALLOC( string_buf, old_string_size, string_size ) ) in t42_parse_sfnts() 609 (void)T1_ToBytes( parser, string_buf, string_size, &real_size, 1 ); in t42_parse_sfnts() 610 old_string_size = string_size; in t42_parse_sfnts() 611 string_size = real_size; in t42_parse_sfnts() 635 string_size = (FT_ULong)tmp; in t42_parse_sfnts() 643 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/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 | 639 int string_size = ResultSeqString::SizeFor(position); in StringReplaceGlobalRegExpWithEmptyString() local 641 int delta = allocated_string_size - string_size; in StringReplaceGlobalRegExpWithEmptyString() 646 Address end_of_string = answer->address() + string_size; in StringReplaceGlobalRegExpWithEmptyString()
|
/external/selinux/mcstrans/src/ |
D | mcstrans.c | 955 string_size(const void *p1, const void *p2) { in string_size() function 1007 qsort(sortable, n_el, sizeof(char *), string_size); in build_regexps()
|
/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'.
|