Home
last modified time | relevance | path

Searched refs:size (Results 51 – 75 of 662) sorted by relevance

12345678910>>...27

/PHP-7.3/ext/zip/lib/
H A Dzip_source_win32utf8.c54 int size; in zip_source_file_create() local
64 size = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, fname, -1, NULL, 0); in zip_source_file_create()
65 if (size == 0) { in zip_source_file_create()
69 if ((wfname = (wchar_t *)malloc(sizeof(wchar_t) * size)) == NULL) { in zip_source_file_create()
73 MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, fname, -1, wfname, size); in zip_source_file_create()
H A Dzip_file_get_offset.c54 zip_int32_t size; in _zip_file_get_offset() local
64 if ((size=_zip_dirent_size(za->src, ZIP_EF_LOCAL, error)) < 0) in _zip_file_get_offset()
67 if (offset+(zip_uint32_t)size > ZIP_INT64_MAX) { in _zip_file_get_offset()
72 return offset + (zip_uint32_t)size; in _zip_file_get_offset()
H A Dzip_extra_field.c135 *lenp = ef->size; in _zip_ef_get_by_id()
136 if (ef->size > 0) in _zip_ef_get_by_id()
165 … if (tt->id == from->id && tt->size == from->size && memcmp(tt->data, from->data, tt->size) == 0) { in _zip_ef_merge()
194 ef->size = size; in _zip_ef_new()
195 if (size > 0) { in _zip_ef_new()
311 zip_uint16_t size; in _zip_ef_size() local
313 size = 0; in _zip_ef_size()
316 size = (zip_uint16_t)(size+4+ef->size); in _zip_ef_size()
319 return size; in _zip_ef_size()
337 _zip_buffer_put_16(buffer, ef->size); in _zip_ef_write()
[all …]
H A Dzip_buffer.c64 return buffer->ok && buffer->offset == buffer->size; in _zip_buffer_eof()
73 if (!buffer->ok || buffer->offset + length < length || buffer->offset + length > buffer->size) { in _zip_buffer_get()
140 return buffer->ok ? buffer->size - buffer->offset : 0; in _zip_buffer_left()
145 _zip_buffer_new(zip_uint8_t *data, zip_uint64_t size) in _zip_buffer_new() argument
151 if ((data = (zip_uint8_t *)malloc(size)) == NULL) { in _zip_buffer_new()
165 buffer->size = size; in _zip_buffer_new()
174 _zip_buffer_new_from_source(zip_source_t *src, zip_uint64_t size, zip_uint8_t *buf, zip_error_t *er… in _zip_buffer_new_from_source() argument
178 if ((buffer = _zip_buffer_new(buf, size)) == NULL) { in _zip_buffer_new_from_source()
183 if (_zip_read(src, buffer->data, size, error) < 0) { in _zip_buffer_new_from_source()
294 if (offset > buffer->size) { in _zip_buffer_set_offset()
[all …]
H A Dzip_source_crc.c45 zip_uint64_t size; member
74 ctx->size = 0; in zip_source_crc()
102 ctx->size = ctx->position; in crc_read()
116 if ((st.valid & ZIP_STAT_SIZE) && st.size != ctx->size) { in crc_read()
148 st->size = ctx->size; in crc_read()
150 st->comp_size = ctx->size; in crc_read()
/PHP-7.3/ext/intl/
H A Dintl_common.h33 # define eumalloc(size) (UChar*)safe_emalloc(size, sizeof(UChar), 0) argument
37 # define eurealloc(ptr, size) (UChar*)erealloc((ptr), size * sizeof(UChar)) argument
/PHP-7.3/ext/standard/tests/array/
H A Darray_chunk_variation7.phpt5 /* Prototype : array array_chunk(array $array, int $size [, bool $preserve_keys])
7 * : Chunks an array into size large chunks
18 $size = 2;
31 var_dump( array_chunk($input_array, $size) );
32 var_dump( array_chunk($input_array, $size, true) );
33 var_dump( array_chunk($input_array, $size, false) );
H A Darray_chunk_variation6.phpt5 /* Prototype : array array_chunk(array $array, int $size [, bool $preserve_keys])
7 * : Chunks an array into size large chunks
34 $size = 2;
42 var_dump( array_chunk($input_array, $size) );
43 var_dump( array_chunk($input_array, $size, true) );
44 var_dump( array_chunk($input_array, $size, false) );
/PHP-7.3/ext/standard/
H A Dcrypt_blowfish.h21 extern int _crypt_output_magic(const char *setting, char *output, int size);
24 char *output, int size);
28 const char *input, int size, char *output, int output_size);
/PHP-7.3/ext/xmlrpc/libxmlrpc/
H A Dsimplestring.c120 string->size = SIMPLESTRING_INCR; in simplestring_init_str()
123 string->size = 0; in simplestring_init_str()
199 size_t newsize = target->size, incr = 0; in simplestring_addn()
210 if(target->len + add_len + 1 > target->size) { in simplestring_addn()
213 incr = target->size * 2; in simplestring_addn()
225 target->size = target->str ? newsize : 0; in simplestring_addn()
/PHP-7.3/ext/standard/tests/streams/
H A Dbug78902.phpt11 $size = 1024 * 1024 * 2; // 2mb
13 while ($size > 0) {
14 fputs($fp, str_pad('', min($chunk,$size)));
15 $size -= $chunk;
/PHP-7.3/ext/pdo_oci/tests/
H A Dbug60994.phpt40 echo 'size of string1 is ', strlen($string1), ' bytes, ', mb_strlen($string1), ' chars.', PHP_EOL;
41 echo 'size of stream1 is ', strlen($stream1), ' bytes, ', mb_strlen($stream1), ' chars.', PHP_EOL;
57 echo 'size of string2 is ', strlen($string2), ' bytes, ', mb_strlen($string2), ' chars.', PHP_EOL;
99 size of string1 is 1000006 bytes, 1000006 chars.
100 size of stream1 is 1000006 bytes, 1000006 chars.
105 size of string2 is 16380 bytes, 8193 chars.
106 size of stream2 is 16380 bytes, 8193 chars.
111 size of string3 is 16380 bytes, 8193 chars.
112 size of stream3 is 16380 bytes, 8193 chars.
117 size of string4 is 24567 bytes, 8193 chars.
[all …]
/PHP-7.3/ext/standard/tests/file/
H A Duserstreams_005.phpt39 test("stream_truncate size 0", $fd, 0);
40 test("stream_truncate size 10", $fd, 10);
41 test("stream_truncate negative size", $fd, -1);
51 ------ stream_truncate size 0: -------
54 ------ stream_truncate size 10: -------
57 ------ stream_truncate negative size: -------
59 Warning: ftruncate(): Negative size is not supported in %s on line %d
H A Dbug37158.phpt27 var_dump('size of contents 1 = ' . strlen($outsidecontents));
29 var_dump('size of contents 2 = ' . strlen($outsidecontents));
36 string(26) "size of contents 1 = 20000"
37 string(26) "size of contents 2 = 40960"
/PHP-7.3/Zend/
H A Dzend_stream.c170 size_t size; in zend_stream_fixup() local
209 size = zend_stream_fsize(file_handle); in zend_stream_fixup()
210 if (size == (size_t)-1) { in zend_stream_fixup()
222 size != 0 && in zend_stream_fixup()
232 size -= offset; in zend_stream_fixup()
247 size = 0; in zend_stream_fixup()
250 size += read; in zend_stream_fixup()
254 *buf = safe_erealloc(*buf, size, 2, 0); in zend_stream_fixup()
255 remain = size; in zend_stream_fixup()
259 file_handle->handle.stream.mmap.len = size; in zend_stream_fixup()
[all …]
H A Dzend_extensions.c277 size_t size; member
284 data->size += extension->op_array_persist_calc(data->op_array); in zend_extension_op_array_persist_calc_handler()
291 size_t size = extension->op_array_persist(data->op_array, data->mem); in zend_extension_op_array_persist_handler() local
292 if (size) { in zend_extension_op_array_persist_handler()
293 data->mem = (void*)((char*)data->mem + size); in zend_extension_op_array_persist_handler()
294 data->size += size; in zend_extension_op_array_persist_handler()
305 data.size = 0; in zend_extensions_op_array_persist_calc()
308 return data.size; in zend_extensions_op_array_persist_calc()
319 data.size = 0; in zend_extensions_op_array_persist()
322 return data.size; in zend_extensions_op_array_persist()
/PHP-7.3/ext/dba/
H A Ddba_db1.c37 #define DB1_GKEY DBT gkey; gkey.data = (char *) key; gkey.size = keylen
102 if (newlen) *newlen = gval.size; in DBA_FETCH_FUNC()
103 return estrndup(gval.data, gval.size); in DBA_FETCH_FUNC()
115 gval.size = vallen; in DBA_UPDATE_FUNC()
147 if (newlen) *newlen = gkey.size; in DBA_FIRSTKEY_FUNC()
148 return estrndup(gkey.data, gkey.size); in DBA_FIRSTKEY_FUNC()
163 if (newlen) *newlen = gkey.size; in DBA_NEXTKEY_FUNC()
164 return estrndup(gkey.data, gkey.size); in DBA_NEXTKEY_FUNC()
/PHP-7.3/ext/opcache/
H A Dzend_shared_alloc.h74 size_t size; member
125 void *zend_shared_alloc(size_t size);
128 void *_zend_shared_memdup(void *p, size_t size, zend_bool free_source);
129 int zend_shared_memdup_size(void *p, size_t size);
145 #define ZEND_ALIGNED_SIZE(size) \ argument
146 ZEND_MM_ALIGNED_SIZE_EX(size, PLATFORM_ALIGNMENT)
/PHP-7.3/ext/opcache/Optimizer/
H A Descape_analysis.c41 size[i] = 1; in union_find_init()
66 if (size[r1] < size[r2]) { in union_find_unite()
68 size[r2] += size[r1]; in union_find_unite()
71 size[r1] += size[r2]; in union_find_unite()
83 int *size; in zend_build_equi_escape_sets() local
86 size = do_alloca(sizeof(int) * ssa_vars_count, use_heap); in zend_build_equi_escape_sets()
87 if (!size) { in zend_build_equi_escape_sets()
90 union_find_init(parent, size, ssa_vars_count); in zend_build_equi_escape_sets()
96 union_find_unite(parent, size, i, p->sources[0]); in zend_build_equi_escape_sets()
99 union_find_unite(parent, size, i, p->sources[j]); in zend_build_equi_escape_sets()
[all …]
/PHP-7.3/ext/ftp/
H A Dftp.c1027 size = 0; in ftp_put()
1041 size++; in ftp_put()
1045 size++; in ftp_put()
1048 if (size && my_send(ftp, data->fd, data->buf, size) != size) { in ftp_put()
1095 size = 0; in ftp_append()
1109 size++; in ftp_append()
1113 size++; in ftp_append()
1116 if (size && my_send(ftp, data->fd, data->buf, size) != size) { in ftp_append()
1301 if (my_send(ftp, ftp->fd, data, size) != size) { in ftp_putcmd()
2289 size++; in ftp_nb_continue_write()
[all …]
/PHP-7.3/ext/oci8/tests/
H A Dimp_res_field.phpt62 $size = oci_field_size($s, $i);
65 …echo "$name\t: is_null $is_null, precision $precision, scale $scale, size $size, typeraw $typeraw,…
159 C1_NUMBER : is_null F, precision 0, scale -127, size 22, typeraw 2, type NUMBER
162 C3_VARCHAR21 : is_null F, precision 0, scale 0, size 4, typeraw 1, type VARCHAR2
164 C4_NUMBER52 : is_null F, precision 5, scale 2, size 22, typeraw 2, type NUMBER
169 C1_NUMBER : is_null F, precision 0, scale -127, size 22, typeraw 2, type NUMBER
179 C3_VARCHAR21 : is_null F, precision 0, scale 0, size 4, typeraw 1, type VARCHAR2
186 C4_NUMBER52 : is_null F, precision 5, scale 2, size 22, typeraw 2, type NUMBER
205 C1_NUMBER : is_null F, precision 0, scale -127, size 22, typeraw 2, type NUMBER
220 C4_NUMBER52 : is_null F, precision 5, scale 2, size 22, typeraw 2, type NUMBER
[all …]
H A Dbug70700.phpt60 echo 'size of string1 is ', strlen($string1), ' bytes, ', mb_strlen($string1), ' chars.', PHP_EOL;
91 echo 'size of string2 is ', strlen($string2), ' bytes, ', mb_strlen($string2), ' chars.', PHP_EOL;
122 echo 'size of string3 is ', strlen($string3), ' bytes, ', mb_strlen($string3), ' chars.', PHP_EOL;
159 size of string1 is 1000006 bytes, 1000006 chars.
160 size of stream1a is 1000006 bytes, 1000006 chars.
165 size of string2 is 8194 bytes, 4100 chars.
166 size of stream2a is 8194 bytes, 4100 chars.
171 size of string3 is 8194 bytes, 4100 chars.
172 size of stream3a is 8194 bytes, 4100 chars.
177 size of string4 is 8193 bytes, 2735 chars.
[all …]
/PHP-7.3/ext/gd/tests/
H A Dbug73155.phpt17 printf("chunk size: %d\n", $header['chunk_size']);
20 printf("file size: %d\n", strlen($buffer));
24 chunk size: 64
27 file size: 5145
/PHP-7.3/ext/xml/tests/
H A Dbug32001.phpt171 Chunk size: all data at once
291 Chunk size: 1 byte(s)
303 Chunk size: 1 byte(s)
315 Chunk size: 1 byte(s)
327 Chunk size: 1 byte(s)
339 Chunk size: 1 byte(s)
351 Chunk size: 1 byte(s)
363 Chunk size: 1 byte(s)
375 Chunk size: 1 byte(s)
387 Chunk size: 1 byte(s)
[all …]
/PHP-7.3/ext/spl/tests/
H A Dbug67247.phpt6 echo "size: ".$ar->getSize()."\n";
8 echo "size: ".$ar->getSize()."\n";
11 size: 1

Completed in 50 milliseconds

12345678910>>...27