Searched refs:chunk_size (Results 1 - 22 of 22) sorted by relevance

/PHP_TRUNK/ext/pcre/pcrelib/sljit/
H A DsljitExecAllocator.c180 sljit_uw chunk_size; local
190 chunk_size = free_block->size;
191 if (chunk_size > size + 64) {
193 chunk_size -= size;
194 free_block->size = chunk_size;
195 header = AS_BLOCK_HEADER(free_block, chunk_size);
196 header->prev_size = chunk_size;
202 size = chunk_size;
212 chunk_size = (size + sizeof(struct block_header) + CHUNK_SIZE - 1) & CHUNK_MASK;
213 header = (struct block_header*)alloc_chunk(chunk_size);
[all...]
/PHP_TRUNK/ext/standard/tests/file/
H A Dfile.inc123 $chunk_size = 1024;
124 if ( $size > $chunk_size ) {
128 if ( $size <= $chunk_size ) {
129 $chunk_size = $size;
131 $num_values = str_repeat($data, ($chunk_size/$size_divider) + $add_value );
132 $bytes_written = fwrite($file_handle, $num_values, $chunk_size);
133 if ( $bytes_written != $chunk_size ) {
136 $size -= $chunk_size;
139 $num_values = str_repeat($data, ($chunk_size/$size_divider) + $add_value );
/PHP_TRUNK/ext/gd/libgd/
H A Dwebpimg.c260 uint32 chunk_size = 0xffffffffu; local
270 chunk_size = get_le32(*data_ptr + 16);
271 if ((chunk_size > riff_size + 8) || (chunk_size & 1)) {
279 return chunk_size;
460 const uint32 chunk_size = SkipRiffHeader(&data, &data_size); local
461 if (!chunk_size) {
767 const int chunk_size = (img_size_bytes + 1) & ~1; /* make size even */ local
768 const int riff_size = chunk_size + 12;
776 (chunk_size >>
853 const uint32 chunk_size = SkipRiffHeader(&data, &data_size); local
[all...]
/PHP_TRUNK/ext/gd/
H A Dgd.c406 ZEND_ARG_INFO(0, chunk_size)
2758 /* {{{ proto bool imagegd2(resource im [, string filename, [, int chunk_size, [, int type]]])
/PHP_TRUNK/ext/iconv/
H A Diconv.c219 static php_output_handler *php_iconv_output_handler_init(const char *name, size_t name_len, size_t chunk_size, int flags);
395 static php_output_handler *php_iconv_output_handler_init(const char *handler_name, size_t handler_name_len, size_t chunk_size, int flags) argument
397 return php_output_handler_create_internal(handler_name, handler_name_len, php_iconv_output_handler, chunk_size, flags);
/PHP_TRUNK/ext/interbase/
H A Dibase_blobs.c109 unsigned short chunk_size = (max_len-cur_len) > USHRT_MAX ? USHRT_MAX local
112 stat = isc_get_segment(IB_STATUS, &ib_blob->bl_handle, &seg_len, chunk_size, &bl_data[cur_len]);
134 unsigned short chunk_size; local
138 for (rem_cnt = Z_STRLEN_P(string_arg); rem_cnt > 0; rem_cnt -= chunk_size) {
140 chunk_size = rem_cnt > USHRT_MAX ? USHRT_MAX : (unsigned short)rem_cnt;
142 if (isc_put_segment(IB_STATUS, &ib_blob->bl_handle, chunk_size, &Z_STRVAL_P(string_arg)[put_cnt] )) {
146 put_cnt += chunk_size;
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_net.c71 size_t old_chunk_size = net_stream->chunk_size;
78 net_stream->chunk_size = MIN(to_read, net->data->options.net_read_buffer_size);
89 net_stream->chunk_size = old_chunk_size;
/PHP_TRUNK/ext/oci8/
H A Doci8.c2587 if (column->chunk_size)
2588 descriptor->chunk_size = column->chunk_size;
2590 if (descriptor->chunk_size) /* Cache the chunk_size to avoid recalling OCILobGetChunkSize */
2591 column->chunk_size = descriptor->chunk_size;
H A Doci8_lob.c95 descriptor->chunk_size = 0;
215 ub4 chunk_size; local
222 if (!descriptor->chunk_size) {
223 PHP_OCI_CALL_RETURN(errstatus, OCILobGetChunkSize, (connection->svc, connection->err, descriptor->descriptor, &chunk_size));
230 descriptor->chunk_size = chunk_size;
234 if ((read_length % descriptor->chunk_size) != 0) {
235 return descriptor->chunk_size * ((read_length / descriptor->chunk_size) + 1);
H A Doci8_statement.c715 outcol->chunk_size = 0;
H A Dphp_oci8_int.h175 ub4 chunk_size; /* chunk size of the LOB. 0 - unknown */ member in struct:__anon140
286 ub4 chunk_size; /* LOB chunk size */ member in struct:__anon147
/PHP_TRUNK/ext/pdo_firebird/
H A Dfirebird_statement.c274 unsigned short chunk_size = (*len-cur_len) > USHRT_MAX ? USHRT_MAX local
277 stat = isc_get_segment(H->isc_status, &blobh, &seg_len, chunk_size, &(*ptr)[cur_len]);
417 unsigned short chunk_size; local
428 for (rem_cnt = Z_STRLEN_P(param); rem_cnt > 0; rem_cnt -= chunk_size) {
430 chunk_size = rem_cnt > USHRT_MAX ? USHRT_MAX : (unsigned short)rem_cnt;
432 if (isc_put_segment(H->isc_status, &h, chunk_size, &Z_STRVAL_P(param)[put_cnt])) {
437 put_cnt += chunk_size;
/PHP_TRUNK/ext/standard/
H A Dfilters.c1931 size_t chunk_size; member in struct:_php_chunked_filter_data
1946 data->chunk_size = 0;
1950 data->chunk_size = (data->chunk_size * 16) + (*p - '0');
1952 data->chunk_size = (data->chunk_size * 16) + (*p - 'A' + 10);
1954 data->chunk_size = (data->chunk_size * 16) + (*p - 'a' + 10);
1989 if (data->chunk_size == 0) {
2002 if ((size_t) (end - p) >= data->chunk_size) {
[all...]
H A Dbasic_functions.c151 ZEND_ARG_INFO(0, chunk_size)
2096 ZEND_ARG_INFO(0, chunk_size)
H A Dhttp_fopen_wrapper.c131 size_t chunk_size = 0, file_size = 0; local
348 chunk_size = php_stream_set_chunk_size(stream, 1);
913 php_stream_set_chunk_size(stream, (int)chunk_size);
/PHP_TRUNK/ext/zlib/
H A Dzlib.c273 static php_output_handler *php_zlib_output_handler_init(const char *handler_name, size_t handler_name_len, size_t chunk_size, int flags) argument
278 ZLIBG(output_compression) = chunk_size ? chunk_size : PHP_OUTPUT_HANDLER_DEFAULT_SIZE;
283 if ((h = php_output_handler_create_internal(handler_name, handler_name_len, php_zlib_output_handler, chunk_size, flags))) {
/PHP_TRUNK/main/
H A Doutput.c58 static inline php_output_handler *php_output_handler_init(zend_string *name, size_t chunk_size, int flags);
441 /* {{{ SUCCESS|FAILURE php_output_start_user(zval *handler, size_t chunk_size, int flags)
443 PHPAPI int php_output_start_user(zval *output_handler, size_t chunk_size, int flags) argument
448 handler = php_output_handler_create_user(output_handler, chunk_size, flags);
450 handler = php_output_handler_create_internal(ZEND_STRL(php_output_default_handler_name), php_output_handler_default_func, chunk_size, flags);
460 /* {{{ SUCCESS|FAILURE php_output_start_internal(zval *name, php_output_handler_func_t handler, size_t chunk_size, int flags)
462 PHPAPI int php_output_start_internal(const char *name, size_t name_len, php_output_handler_func_t output_handler, size_t chunk_size, int flags) argument
466 handler = php_output_handler_create_internal(name, name_len, php_output_handler_compat_func, chunk_size, flags);
476 /* {{{ php_output_handler *php_output_handler_create_user(zval *handler, size_t chunk_size, int flags)
478 PHPAPI php_output_handler *php_output_handler_create_user(zval *output_handler, size_t chunk_size, in argument
519 php_output_handler_create_internal(const char *name, size_t name_len, php_output_handler_context_func_t output_handler, size_t chunk_size, int flags) argument
869 php_output_handler_init(zend_string *name, size_t chunk_size, int flags) argument
1306 zend_long chunk_size = 0; local
[all...]
H A Dphp_output.h119 typedef struct _php_output_handler *(*php_output_handler_alias_ctor_t)(const char *handler_name, size_t handler_name_len, size_t chunk_size, int flags);
229 PHPAPI int php_output_start_user(zval *output_handler, size_t chunk_size, int flags);
230 PHPAPI int php_output_start_internal(const char *name, size_t name_len, php_output_handler_func_t output_handler, size_t chunk_size, int flags);
232 PHPAPI php_output_handler *php_output_handler_create_user(zval *handler, size_t chunk_size, int flags);
233 PHPAPI php_output_handler *php_output_handler_create_internal(const char *name, size_t name_len, php_output_handler_context_func_t handler, size_t chunk_size, int flags);
H A Dphp_streams.h223 size_t chunk_size; member in struct:_php_stream
/PHP_TRUNK/main/streams/
H A Dfilter.c491 stream->readbuf = perealloc(stream->readbuf, stream->writepos + flushed_size + stream->chunk_size, stream->is_persistent);
H A Dstreams.c305 ret->chunk_size = FG(def_chunk_size);
590 chunk_buf = emalloc(stream->chunk_size);
600 justread = stream->ops->read(stream, chunk_buf, stream->chunk_size);
682 if (stream->readbuf && stream->readbuflen - stream->writepos < stream->chunk_size) {
690 if (stream->readbuflen - stream->writepos < stream->chunk_size) {
691 stream->readbuflen += stream->chunk_size;
736 if (!stream->readfilters.head && (stream->flags & PHP_STREAM_FLAG_NO_BUFFER || stream->chunk_size == 1)) {
967 /* XXX: Should be fine to always read chunk_size */
971 toread = stream->chunk_size;
974 if (toread > stream->chunk_size) {
[all...]
/PHP_TRUNK/ext/tidy/
H A Dtidy.c225 static php_output_handler *php_tidy_output_handler_init(const char *handler_name, size_t handler_name_len, size_t chunk_size, int flags);
1138 static php_output_handler *php_tidy_output_handler_init(const char *handler_name, size_t handler_name_len, size_t chunk_size, int flags) argument
1140 if (chunk_size) {
1147 return php_output_handler_create_internal(handler_name, handler_name_len, php_tidy_output_handler, chunk_size, flags);

Completed in 70 milliseconds