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

/PHP_5_3/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_5_3/ext/interbase/
H A Dibase_blobs.c111 unsigned short chunk_size = (max_len-cur_len) > USHRT_MAX ? USHRT_MAX local
114 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_PP(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_PP(string_arg)[put_cnt] )) {
146 put_cnt += chunk_size;
/PHP_5_3/ext/oci8/
H A Doci8_lob.c210 ub4 chunk_size; local
216 if (!descriptor->chunk_size) {
217 PHP_OCI_CALL_RETURN(connection->errcode, OCILobGetChunkSize, (connection->svc, connection->err, descriptor->descriptor, &chunk_size));
224 descriptor->chunk_size = chunk_size;
227 if ((read_length % descriptor->chunk_size) != 0) {
228 return descriptor->chunk_size * ((read_length / descriptor->chunk_size) + 1);
H A Dphp_oci8_int.h157 ub4 chunk_size; /* chunk size of the LOB. 0 - unknown */ member in struct:__anon110
/PHP_5_3/ext/standard/
H A Dfilters.c1912 size_t chunk_size; member in struct:_php_chunked_filter_data
1926 data->chunk_size = 0;
1930 data->chunk_size = (data->chunk_size * 16) + (*p - '0');
1932 data->chunk_size = (data->chunk_size * 16) + (*p - 'A' + 10);
1934 data->chunk_size = (data->chunk_size * 16) + (*p - 'a' + 10);
1969 if (data->chunk_size == 0) {
1982 if ((size_t) (end - p) >= data->chunk_size) {
[all...]
H A Dhttp_fopen_wrapper.c104 size_t chunk_size = 0, file_size = 0; local
305 chunk_size = php_stream_set_chunk_size(stream, 1);
899 php_stream_set_chunk_size(stream, chunk_size);
H A Dbasic_functions.c148 ZEND_ARG_INFO(0, chunk_size)
/PHP_5_3/main/
H A Doutput.c37 static int php_ob_init(uint initial_size, uint block_size, zval *output_handler, uint chunk_size, zend_bool erase TSRMLS_DC);
137 PHPAPI int php_start_ob_buffer(zval *output_handler, uint chunk_size, zend_bool erase TSRMLS_DC) argument
151 if (chunk_size > 0) {
152 if (chunk_size==1) {
153 chunk_size = 4096;
155 initial_size = (chunk_size*3/2);
156 block_size = chunk_size/2;
161 return php_ob_init(initial_size, block_size, output_handler, chunk_size, erase TSRMLS_CC);
167 PHPAPI int php_start_ob_buffer_named(const char *output_handler_name, uint chunk_size, zend_bool erase TSRMLS_DC) argument
176 result = php_start_ob_buffer(output_handler, chunk_size, eras
437 php_ob_init_named(uint initial_size, uint block_size, char *handler_name, zval *output_handler, uint chunk_size, zend_bool erase TSRMLS_DC) argument
492 php_ob_init(uint initial_size, uint block_size, zval *output_handler, uint chunk_size, zend_bool erase TSRMLS_DC) argument
772 long chunk_size = 0; local
[all...]
H A Dphp_output.h36 PHPAPI int php_start_ob_buffer(zval *output_handler, uint chunk_size, zend_bool erase TSRMLS_DC);
37 PHPAPI int php_start_ob_buffer_named(const char *output_handler_name, uint chunk_size, zend_bool erase TSRMLS_DC);
72 uint chunk_size; member in struct:_php_ob_buffer
H A Dphp_streams.h223 size_t chunk_size; member in struct:_php_stream
H A Dmain.c1630 OG(ob_nesting_level) && !OG(active_ob_buffer).chunk_size && PG(memory_limit) < zend_memory_usage(1 TSRMLS_CC)) {
/PHP_5_3/main/streams/
H A Dfilter.c493 stream->readbuf = perealloc(stream->readbuf, stream->writepos + flushed_size + stream->chunk_size, stream->is_persistent);
H A Dstreams.c297 ret->chunk_size = FG(def_chunk_size);
520 chunk_buf = emalloc(stream->chunk_size);
530 justread = stream->ops->read(stream, chunk_buf, stream->chunk_size TSRMLS_CC);
612 if (stream->readbuf && stream->readbuflen - stream->writepos < stream->chunk_size) {
620 if (stream->readbuflen - stream->writepos < stream->chunk_size) {
621 stream->readbuflen += stream->chunk_size;
666 if (!stream->readfilters.head && (stream->flags & PHP_STREAM_FLAG_NO_BUFFER || stream->chunk_size == 1)) {
893 /* XXX: Should be fine to always read chunk_size */
897 toread = stream->chunk_size;
900 if (toread > stream->chunk_size) {
[all...]
/PHP_5_3/ext/mysqlnd/
H A Dmysqlnd_net.c68 size_t old_chunk_size = conn->net->stream->chunk_size;
71 conn->net->stream->chunk_size = MIN(to_read, conn->net->options.net_read_buffer_size);
82 conn->net->stream->chunk_size = old_chunk_size;
238 size_t old_chunk_size = net->stream->chunk_size;
248 net->stream->chunk_size = MYSQLND_MAX_PACKET_SIZE;
345 net->stream->chunk_size = old_chunk_size;
H A Dmysqlnd_wireprotocol.c1533 size_t old_chunk_size = net->stream->chunk_size;
1615 net->stream->chunk_size = old_chunk_size;
/PHP_5_3/ext/gd/
H A Dgd.c437 ZEND_ARG_INFO(0, chunk_size)
2858 /* {{{ proto bool imagegd2(resource im [, string filename, [, int chunk_size, [, int type]]])
/PHP_5_3/ext/pdo_firebird/
H A Dfirebird_statement.c276 unsigned short chunk_size = (*len-cur_len) > USHRT_MAX ? USHRT_MAX local
279 stat = isc_get_segment(H->isc_status, &blobh, &seg_len, chunk_size, &(*ptr)[cur_len]);
419 unsigned short chunk_size; local
431 for (rem_cnt = Z_STRLEN_P(param); rem_cnt > 0; rem_cnt -= chunk_size) {
433 chunk_size = rem_cnt > USHRT_MAX ? USHRT_MAX : (unsigned short)rem_cnt;
435 if (isc_put_segment(H->isc_status, &h, chunk_size, &Z_STRVAL_P(param)[put_cnt])) {
440 put_cnt += chunk_size;

Completed in 89 milliseconds