/third_party/boringssl/src/crypto/buf/ |
D | buf_test.cc | 66 size_t new_len = buf->max + 1; in TEST() local 67 ASSERT_EQ(new_len, BUF_MEM_grow(buf.get(), new_len)); in TEST() 68 EXPECT_GE(buf->max, new_len); in TEST() 69 EXPECT_EQ(new_len, buf->length); in TEST() 73 for (size_t i = 100; i < new_len; i++) { in TEST()
|
D | buf.c | 135 size_t new_len = buf->length + len; in BUF_MEM_append() local 136 if (new_len < len) { in BUF_MEM_append() 140 if (!BUF_MEM_reserve(buf, new_len)) { in BUF_MEM_append() 144 buf->length = new_len; in BUF_MEM_append()
|
/third_party/uboot/u-boot-2020.01/post/drivers/ |
D | flash.c | 35 static void *seed_src_data(void *ptr, ulong *old_len, ulong new_len) in seed_src_data() argument 40 p = ptr = realloc(ptr, new_len); in seed_src_data() 44 for (i = *old_len; i < new_len; ++i) in seed_src_data() 47 *old_len = new_len; in seed_src_data()
|
/third_party/flutter/skia/third_party/externals/wuffs/fuzz/c/fuzzlib/ |
D | fuzzlib.c | 208 size_t new_len = old_len + strlen(filename); in visit() local 211 new_len++; in visit() 213 if ((filename_len >= PATH_MAX) || (new_len >= PATH_MAX)) { in visit() 221 relative_cwd.buf[new_len - 1] = '/'; in visit() 223 relative_cwd.buf[new_len] = '\x00'; in visit() 224 relative_cwd.len = new_len; in visit()
|
/third_party/musl/src/mman/ |
D | mremap.c | 12 void *__mremap(void *old_addr, size_t old_len, size_t new_len, int flags, ...) in __mremap() argument 17 if (new_len >= PTRDIFF_MAX) { in __mremap() 29 return (void *)syscall(SYS_mremap, old_addr, old_len, new_len, flags, new_addr); in __mremap()
|
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
D | ecma-builtin-arraybuffer-prototype.c | 137 ecma_length_t new_len = (end >= start) ? (end - start) : 0; in ecma_builtin_arraybuffer_prototype_object_slice() local 138 ecma_object_t *new_arraybuffer_p = ecma_arraybuffer_new_object (new_len); in ecma_builtin_arraybuffer_prototype_object_slice() 142 memcpy (new_buf, old_buf + start, new_len); in ecma_builtin_arraybuffer_prototype_object_slice()
|
D | ecma-builtin-array-prototype.c | 1400 const uint32_t new_len = len - delete_count + item_count; in ecma_builtin_array_prototype_object_splice() local 1445 for (k = len; k > new_len; k--) in ecma_builtin_array_prototype_object_splice() 1514 …t_length_value = ecma_builtin_array_prototype_helper_set_length (obj_p, ((ecma_number_t) new_len)); in ecma_builtin_array_prototype_object_splice() 1622 ecma_number_t new_len = ((ecma_number_t) len) + ((ecma_number_t) args_number); in ecma_builtin_array_prototype_object_unshift() local 1623 ecma_value_t set_length_value = ecma_builtin_array_prototype_helper_set_length (obj_p, new_len); in ecma_builtin_array_prototype_object_unshift() 1630 return ecma_make_number_value (new_len); in ecma_builtin_array_prototype_object_unshift()
|
/third_party/ffmpeg/libavformat/ |
D | oggparsevorbis.c | 373 unsigned new_len; in vorbis_header() local 380 new_len = 7 + 4 + AV_RL32(priv->packet[1] + 7) + 4 + 1; in vorbis_header() 381 if (new_len >= 16 && new_len < os->psize) { in vorbis_header() 382 AV_WL32(priv->packet[1] + new_len - 5, 0); in vorbis_header() 383 priv->packet[1][new_len - 1] = 1; in vorbis_header() 384 priv->len[1] = new_len; in vorbis_header()
|
/third_party/boost/libs/test/doc/snippet/ |
D | const_string.hpp | 72 …void resize( size_t new_len ) { if( m_begin + new_len < m_end ) m_end = m_begin + new_len;… in resize() argument
|
/third_party/boost/libs/test/example/ |
D | const_string.hpp | 70 …void resize( size_t new_len ) { if( m_begin + new_len < m_end ) m_end = … in resize() argument
|
/third_party/flutter/skia/third_party/externals/piex/src/binary_parse/ |
D | range_checked_byte_ptr.cc | 255 size_t new_len = sub_array_end_ - page_begin_offset_; in restrictPageToSubArray() local 256 if (new_len > current_page_len_) { in restrictPageToSubArray() 257 new_len = current_page_len_; in restrictPageToSubArray() 259 current_page_len_ = new_len; in restrictPageToSubArray()
|
/third_party/skia/third_party/externals/piex/src/binary_parse/ |
D | range_checked_byte_ptr.cc | 255 size_t new_len = sub_array_end_ - page_begin_offset_; in restrictPageToSubArray() local 256 if (new_len > current_page_len_) { in restrictPageToSubArray() 257 new_len = current_page_len_; in restrictPageToSubArray() 259 current_page_len_ = new_len; in restrictPageToSubArray()
|
/third_party/e2fsprogs/e2fsck/ |
D | rehash.c | 390 unsigned int new_len; in duplicate_search_and_fix() local 419 new_len = ext2fs_dirent_name_len(ent->dir); in duplicate_search_and_fix() 420 if (new_len == 0) { in duplicate_search_and_fix() 425 memcpy(new_name, ent->dir->name, new_len); in duplicate_search_and_fix() 426 mutate_name(new_name, &new_len); in duplicate_search_and_fix() 429 (new_len != in duplicate_search_and_fix() 431 memcmp(new_name, fd->harray[j].dir->name, new_len)) in duplicate_search_and_fix() 433 mutate_name(new_name, &new_len); in duplicate_search_and_fix() 437 new_name[new_len] = 0; in duplicate_search_and_fix() 440 memcpy(ent->dir->name, new_name, new_len); in duplicate_search_and_fix() [all …]
|
/third_party/boost/tools/build/src/engine/ |
D | hcache.cpp | 149 unsigned long new_len = buf_len * 2; in read_netstring() local 150 if ( new_len < len ) in read_netstring() 151 new_len = len; in read_netstring() 152 buf = (char *)BJAM_REALLOC( buf, new_len + 1 ); in read_netstring() 154 buf_len = new_len; in read_netstring()
|
D | execunix.cpp | 410 int const new_len = old_len + ret + 1; in read_descriptor() local 411 cmdtab[ i ].buf_size[ s ] = new_len; in read_descriptor() 412 cmdtab[ i ].buffer[ s ] = (char*)BJAM_MALLOC_ATOMIC( new_len ); in read_descriptor()
|
/third_party/uboot/u-boot-2020.01/lib/libavb/ |
D | avb_sha256.c | 310 size_t new_len, rem_len, tmp_len; in avb_sha256_update() local 323 new_len = len - rem_len; in avb_sha256_update() 324 block_nb = new_len / AVB_SHA256_BLOCK_SIZE; in avb_sha256_update() 331 rem_len = new_len % AVB_SHA256_BLOCK_SIZE; in avb_sha256_update()
|
D | avb_sha512.c | 296 size_t new_len, rem_len, tmp_len; in avb_sha512_update() local 309 new_len = len - rem_len; in avb_sha512_update() 310 block_nb = new_len / AVB_SHA512_BLOCK_SIZE; in avb_sha512_update() 317 rem_len = new_len % AVB_SHA512_BLOCK_SIZE; in avb_sha512_update()
|
/third_party/boringssl/src/crypto/err/ |
D | err.c | 667 size_t alloced, new_len, len = 0, substr_len; in err_add_error_vdata() local 685 new_len = len + substr_len; in err_add_error_vdata() 686 if (new_len > alloced) { in err_add_error_vdata() 695 alloced = new_len + 20; in err_add_error_vdata() 705 len = new_len; in err_add_error_vdata()
|
/third_party/ntfs-3g/ntfsprogs/ |
D | ntfstruncate.c | 81 s64 new_len; variable 273 new_len = ll; in parse_options() 274 ntfs_log_verbose("new length = %lli\n", (long long)new_len); in parse_options() 778 err = ntfs_attr_truncate(na, new_len); in main()
|
/third_party/boost/boost/test/utils/basic_cstring/ |
D | basic_cstring.hpp | 94 void resize( size_type new_len ); 322 basic_cstring<CharT>::resize( size_type new_len ) in resize() argument 324 if( m_begin + new_len < m_end ) in resize() 325 m_end = m_begin + new_len; in resize()
|
/third_party/protobuf/src/google/protobuf/io/ |
D | tokenizer.cc | 1050 const size_t new_len = text_size + output->size(); in ParseStringAppend() local 1051 if (new_len > output->capacity()) { in ParseStringAppend() 1052 output->reserve(new_len); in ParseStringAppend()
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
D | hb-ot-shape-complex-arabic.cc | 471 unsigned int new_len = count + extra_glyphs_needed; // write head during CUT in apply_stch() local 472 unsigned int j = new_len; in apply_stch() 589 buffer->len = new_len; in apply_stch()
|
/third_party/flutter/skia/third_party/externals/harfbuzz/src/ |
D | hb-ot-shape-complex-arabic.cc | 470 unsigned int new_len = count + extra_glyphs_needed; // write head during CUT in apply_stch() local 471 unsigned int j = new_len; in apply_stch() 588 buffer->len = new_len; in apply_stch()
|
/third_party/harfbuzz/src/ |
D | hb-ot-shape-complex-arabic.cc | 471 unsigned int new_len = count + extra_glyphs_needed; // write head during CUT in apply_stch() local 472 unsigned int j = new_len; in apply_stch() 589 buffer->len = new_len; in apply_stch()
|
/third_party/lwip/src/core/ |
D | pbuf.c | 402 pbuf_realloc(struct pbuf *p, u16_t new_len) in pbuf_realloc() argument 411 if (new_len >= p->tot_len) { in pbuf_realloc() 418 shrink = (u16_t)(p->tot_len - new_len); in pbuf_realloc() 421 rem_len = new_len; in pbuf_realloc()
|