Home
last modified time | relevance | path

Searched refs:newsize (Results 1 – 9 of 9) sorted by relevance

/php-src/main/streams/
H A Dmemory.c222 size_t newsize; in php_stream_memory_set_option() local
234 newsize = *(size_t*)ptrparam; in php_stream_memory_set_option()
235 if (newsize <= ZSTR_LEN(ms->data)) { in php_stream_memory_set_option()
236 ms->data = zend_string_truncate(ms->data, newsize, 0); in php_stream_memory_set_option()
237 if (newsize < ms->fpos) { in php_stream_memory_set_option()
238 ms->fpos = newsize; in php_stream_memory_set_option()
242 ms->data = zend_string_realloc(ms->data, newsize, 0); in php_stream_memory_set_option()
243 memset(ZSTR_VAL(ms->data) + old_size, 0, newsize - old_size); in php_stream_memory_set_option()
H A Dstreams.c1467 PHPAPI int _php_stream_truncate_set_size(php_stream *stream, size_t newsize) in _php_stream_truncate_set_size() argument
1469 …_stream_set_option(stream, PHP_STREAM_OPTION_TRUNCATE_API, PHP_STREAM_TRUNCATE_SET_SIZE, &newsize); in _php_stream_truncate_set_size()
/php-src/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_encoding.h169 size_t newsize = oldsize + MAX(oldsize >> 1, needed); \
170 zend_string *newstr = erealloc((buf)->str, _ZSTR_STRUCT_SIZE(newsize)); \
172 limit = (unsigned char*)ZSTR_VAL(newstr) + newsize; \
/php-src/win32/
H A Dglob.c679 u_int newsize, len; in globextend() local
683 newsize = sizeof(*pathv) * (2 + pglob->gl_pathc + pglob->gl_offs); in globextend()
684 pathv = pglob->gl_pathv ? realloc((char *)pglob->gl_pathv, newsize) : in globextend()
685 malloc(newsize); in globextend()
717 newsize + *limitp >= ARG_MAX) { in globextend()
/php-src/ext/opcache/jit/ir/dynasm/
H A Dminilua.c533 int newsize; in luaM_growaux_() local
537 newsize=limit; in luaM_growaux_()
540 newsize=(*size)*2; in luaM_growaux_()
541 if(newsize<4) in luaM_growaux_()
542 newsize=4; in luaM_growaux_()
545 *size=newsize; in luaM_growaux_()
1074 L->size_ci=newsize;
1273 int h1=lmod(h,newsize);
1280 tb->size=newsize;
2676 size_t newsize;
[all …]
/php-src/ext/pcre/pcre2lib/
H A Dpcre2_dfa_match.c431 …uint32_t newsize = (rws->size >= UINT32_MAX/(sizeof(int)*2))? UINT32_MAX/sizeof(int) : rws->size *… in more_workspace() local
432 uint32_t newsizeK = newsize/(1024/sizeof(int)); in more_workspace()
436 newsize = newsizeK*(1024/sizeof(int)); in more_workspace()
438 if (newsize < RWS_RSIZE + ovecsize + RWS_ANCHOR_SIZE) in more_workspace()
440 new = mb->memctl.malloc(newsize*sizeof(int), mb->memctl.memory_data); in more_workspace()
444 new->size = newsize; in more_workspace()
H A Dpcre2_match.c671 PCRE2_SIZE newsize; in match() local
678 newsize = PCRE2_SIZE_MAX - 1; in match()
681 newsize = match_data->heapframes_size * 2; in match()
683 if (newsize / 1024 >= mb->heap_limit) in match()
693 newsize = match_data->heapframes_size + max_delta; in match()
700 if (newsize - usedsize < frame_size) return PCRE2_ERROR_HEAPLIMIT; in match()
701 new = match_data->memctl.malloc(newsize, match_data->memctl.memory_data); in match()
710 match_data->heapframes_size = newsize; in match()
711 frames_top = (heapframe *)((char *)new + newsize); in match()
H A Dpcre2_compile.c4897 uint32_t newsize = cb->named_group_list_size * 2; in parse_regex() local
4899 cb->cx->memctl.malloc(newsize * sizeof(named_group), in parse_regex()
4913 cb->named_group_list_size = newsize; in parse_regex()
/php-src/main/
H A Dphp_streams.h451 PHPAPI int _php_stream_truncate_set_size(php_stream *stream, size_t newsize);

Completed in 85 milliseconds