Home
last modified time | relevance | path

Searched refs:buf (Results 76 – 100 of 337) sorted by path

12345678910>>...14

/PHP-5.5/ext/gd/
H A Dgd.c2631 char buf[4096]; in _php_image_output() local
2686 while ((b = fread(buf, 1, sizeof(buf), tmp)) > 0) { in _php_image_output()
2687 php_write(buf, b TSRMLS_CC); in _php_image_output()
H A Dgd_ctx.c36 static int _php_image_output_putbuf(struct gdIOCtx *ctx, const void* buf, int l) in _php_image_output_putbuf() argument
39 return php_write((void *)buf, l TSRMLS_CC); in _php_image_output_putbuf()
56 static int _php_image_stream_putbuf(struct gdIOCtx *ctx, const void* buf, int l) in _php_image_stream_putbuf() argument
60 return php_stream_write(stream, (void *)buf, l); in _php_image_stream_putbuf()
/PHP-5.5/ext/gd/libgd/
H A Dgd_color.c17 unsigned long *buf; /* stores our calculations */ in gdImageColorMatch() local
36 buf = (unsigned long *)safe_emalloc(sizeof(unsigned long), 5 * im2->colorsTotal, 0); in gdImageColorMatch()
37 memset( buf, 0, sizeof(unsigned long) * 5 * im2->colorsTotal ); in gdImageColorMatch()
43 bp = buf + (color * 5); in gdImageColorMatch()
51 bp = buf; in gdImageColorMatch()
63 gdFree(buf); in gdImageColorMatch()
H A Dgd_gif_in.c136 unsigned char buf[16]; in gdImageCreateFromGifCtx() local
176 screen_width = imw = LM_to_uint(buf[0],buf[1]); in gdImageCreateFromGifCtx()
177 screen_height = imh = LM_to_uint(buf[2],buf[3]); in gdImageCreateFromGifCtx()
218 left = LM_to_uint(buf[0], buf[1]); in gdImageCreateFromGifCtx()
219 top = LM_to_uint(buf[2], buf[3]); in gdImageCreateFromGifCtx()
220 width = LM_to_uint(buf[4], buf[5]); in gdImageCreateFromGifCtx()
221 height = LM_to_uint(buf[6], buf[7]); in gdImageCreateFromGifCtx()
302 unsigned char buf[256]; in DoExtension() local
311 Gif89.delayTime = LM_to_uint(buf[1],buf[2]); in DoExtension()
392 scd->buf[0] = scd->buf[scd->last_byte-2]; in GetCode_()
[all …]
H A Dgd_io.c36 unsigned char buf[2]; in Putword() local
38 buf[0] = w & 0xff; in Putword()
39 buf[1] = (w / 256) & 0xff; in Putword()
40 (ctx->putBuf) (ctx, (char *) buf, 2); in Putword()
122 int gdPutBuf (const void *buf, int size, gdIOCtx * ctx) in gdPutBuf() argument
125 return (ctx->putBuf) (ctx, buf, size); in gdPutBuf()
129 int gdGetBuf (void *buf, int size, gdIOCtx * ctx) in gdGetBuf() argument
131 return (ctx->getBuf) (ctx, buf, size); in gdGetBuf()
H A Dgd_io_dp.c58 static int dynamicGetbuf (gdIOCtxPtr ctx, void *buf, int len);
198 dynamicPutbuf (struct gdIOCtx *ctx, const void *buf, int size) in dynamicPutbuf() argument
203 appendDynamic (dctx->dp, buf, size); in dynamicPutbuf()
227 static int dynamicGetbuf (gdIOCtxPtr ctx, void *buf, int len) in dynamicGetbuf() argument
246 memcpy(buf, (void *) ((char *) dp->data + dp->pos), rlen); in dynamicGetbuf()
H A Dgd_io_file.c77 static int filePutbuf (gdIOCtx * ctx, const void *buf, int size) in filePutbuf() argument
82 return fwrite(buf, 1, size, fctx->f); in filePutbuf()
86 static int fileGetbuf (gdIOCtx * ctx, void *buf, int size) in fileGetbuf() argument
91 return fread(buf, 1, size, fctx->f); in fileGetbuf()
H A Dgd_io_ss.c45 static int sinkPutbuf (gdIOCtx * ctx, const void *buf, int size);
79 static int sourceGetbuf (gdIOCtx * ctx, void *buf, int size) in sourceGetbuf() argument
86 res = ((lctx->src->source) (lctx->src->context, buf, size)); in sourceGetbuf()
105 unsigned char buf; in sourceGetchar() local
107 res = sourceGetbuf (ctx, &buf, 1); in sourceGetchar()
110 return buf; in sourceGetchar()
116 static int sinkPutbuf (gdIOCtx * ctx, const void *buf, int size) in sinkPutbuf() argument
123 res = (lctx->snk->sink) (lctx->snk->context, buf, size); in sinkPutbuf()
H A Dgdtest.c16 static int freadWrapper (void *context, char *buf, int len);
399 freadWrapper (void *context, char *buf, int len) in freadWrapper() argument
401 int got = fread (buf, 1, len, (FILE *) context); in freadWrapper()
H A Dgdxpm.c23 char buf[5]; in gdImageCreateFromXpm() local
49 buf[1] = '\0'; in gdImageCreateFromXpm()
51 red = strtol(buf, NULL, 16); in gdImageCreateFromXpm()
57 blue = strtol(buf, NULL, 16); in gdImageCreateFromXpm()
61 buf[2] = '\0'; in gdImageCreateFromXpm()
64 red = strtol(buf, NULL, 16); in gdImageCreateFromXpm()
72 blue = strtol(buf, NULL, 16); in gdImageCreateFromXpm()
76 buf[3] = '\0'; in gdImageCreateFromXpm()
80 red = strtol(buf, NULL, 16); in gdImageCreateFromXpm()
97 buf[4] = '\0'; in gdImageCreateFromXpm()
[all …]
H A Dwebpimg.c728 (const void*)(pkt->data.frame.buf), in VPXEncode()
H A Dxbm.c161 char *buf; in gdCtxPrintf() local
166 len = vspprintf(&buf, 0, format, args); in gdCtxPrintf()
168 out->putBuf(out, buf, len); in gdCtxPrintf()
169 efree(buf); in gdCtxPrintf()
/PHP-5.5/ext/hash/
H A Dhash.c160 char buf[1024]; in php_hash_do_hash() local
163 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in php_hash_do_hash()
164 ops->hash_update(context, (unsigned char *) buf, n); in php_hash_do_hash()
281 char buf[1024]; in php_hash_do_hash_hmac() local
285 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in php_hash_do_hash_hmac()
286 ops->hash_update(context, (unsigned char *) buf, n); in php_hash_do_hash_hmac()
439 char buf[1024]; in PHP_FUNCTION() local
446 if ((n = php_stream_read(stream, buf, toread)) <= 0) { in PHP_FUNCTION()
467 char *filename, buf[1024]; in PHP_FUNCTION() local
483 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in PHP_FUNCTION()
[all …]
H A Dhash_fnv.c151 fnv_32_buf(void *buf, size_t len, php_hash_uint32 hval, int alternate) in fnv_32_buf() argument
153 unsigned char *bp = (unsigned char *)buf; /* start of buffer */ in fnv_32_buf()
193 fnv_64_buf(void *buf, size_t len, php_hash_uint64 hval, int alternate) in fnv_64_buf() argument
195 unsigned char *bp = (unsigned char *)buf; /* start of buffer */ in fnv_64_buf()
H A Dhash_joaat.c74 joaat_buf(void *buf, size_t len, php_hash_uint32 hval) in joaat_buf() argument
77 unsigned char *input = (unsigned char *)buf; in joaat_buf()
H A Dhash_md.c141 unsigned char buf[1024]; in PHP_NAMED_FUNCTION() local
158 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in PHP_NAMED_FUNCTION()
159 PHP_MD5Update(&context, buf, n); in PHP_NAMED_FUNCTION()
657 PHP_HASH_API void PHP_MD2Update(PHP_MD2_CTX *context, const unsigned char *buf, unsigned int len) in PHP_MD2Update() argument
659 const unsigned char *p = buf, *e = buf + len; in PHP_MD2Update()
H A Dhash_sha.c125 unsigned char buf[1024]; in PHP_FUNCTION() local
142 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in PHP_FUNCTION()
143 PHP_SHA1Update(&context, buf, n); in PHP_FUNCTION()
H A Dphp_hash.h34 typedef void (*php_hash_update_func_t)(void *context, const unsigned char *buf, unsigned int count);
H A Dphp_hash_fnv.h67 static php_hash_uint32 fnv_32_buf(void *buf, size_t len, php_hash_uint32 hval, int alternate);
68 static php_hash_uint64 fnv_64_buf(void *buf, size_t len, php_hash_uint64 hval, int alternate);
H A Dphp_hash_joaat.h32 static php_hash_uint32 joaat_buf(void *buf, size_t len, php_hash_uint32 hval);
/PHP-5.5/ext/iconv/
H A Diconv.c251 snprintf(buf, sizeof(buf), "%d.%d", in PHP_INI_END()
253 version = buf; in PHP_INI_END()
708 out_p = buf; in _php_iconv_strlen()
829 out_p = buf; in _php_iconv_substr()
961 out_p = buf; in _php_iconv_strpos()
991 if (_php_iconv_memequal(buf, ndl_buf_p, sizeof(buf))) { in _php_iconv_strpos()
1019 if (_php_iconv_memequal(buf, &ndl_buf[i], sizeof(buf))) { in _php_iconv_strpos()
1032 if (_php_iconv_memequal(buf, ndl_buf_p, sizeof(buf))) { in _php_iconv_strpos()
1062 if (_php_iconv_memequal(buf, &ndl_buf[i], sizeof(buf))) { in _php_iconv_strpos()
1206 out_p = buf; in _php_iconv_mime_encode()
[all …]
/PHP-5.5/ext/imap/
H A Dphp_imap.c349 ZEND_ARG_INFO(0, buf)
353 ZEND_ARG_INFO(0, buf)
4329 RFC822BUFFER buf; in _php_rfc822_write_address() local
4331 buf.beg = address; in _php_rfc822_write_address()
4332 buf.cur = buf.beg; in _php_rfc822_write_address()
4333 buf.end = buf.beg + sizeof(address) - 1; in _php_rfc822_write_address()
4334 buf.s = &ret; in _php_rfc822_write_address()
4696 char buf[25]; in build_thread_tree() local
4840 free(buf); in php_mail_gets()
4841 buf = NULL; in php_mail_gets()
[all …]
/PHP-5.5/ext/interbase/
H A Dibase_query.c464 buf += slice_size; in _php_ibase_bind_array()
478 memset(buf, 0, buf_size); in _php_ibase_bind_array()
498 *(short*) buf = (short) l; in _php_ibase_bind_array()
557 *(long *) buf = Z_LVAL_P(val); in _php_ibase_bind_array()
565 *(ISC_INT64 *) buf = l; in _php_ibase_bind_array()
647 var->sqlind = &buf[i].sqlind; in _php_ibase_bind()
673 buf[i].sqlind = -1; in _php_ibase_bind()
682 buf[i].sqlind = 0; in _php_ibase_bind()
792 buf[i].val.qval = array_id; in _php_ibase_bind()
1529 snprintf(alias = buf, sizeof(buf), "%s_%02d", base, i++); in _php_ibase_fetch_hash()
[all …]
H A Dibase_service.c157 buf[0] = operation; in _php_ibase_user()
161 int chunk = slprintf(&buf[spb_len], sizeof(buf) - spb_len, "%c%c%c%s", in _php_ibase_user()
213 char buf[128], *host, *user, *pass, *loc; in PHP_FUNCTION() local
225 spb_len = slprintf(buf, sizeof(buf), "%c%c%c%c%s%c%c%s" "%s:service_mgr", in PHP_FUNCTION()
425 char *db, *bk, buf[200]; in _php_ibase_backup_restore() local
442 spb_len = slprintf(buf, sizeof(buf), "%c%c%c%c%s%c%c%c%s%c%c%c%c%c", in _php_ibase_backup_restore()
448 buf[spb_len++] = isc_spb_verbose; in _php_ibase_backup_restore()
451 if (spb_len > sizeof(buf) || spb_len <= 0) { in _php_ibase_backup_restore()
489 char buf[128], *db; in _php_ibase_service_action() local
544 spb_len = slprintf(buf, sizeof(buf), "%c%c%c%c%s%c%c%c%c%c", in _php_ibase_service_action()
[all …]
/PHP-5.5/ext/intl/breakiterator/
H A Dcodepointiterator_internal.cpp241 char *buf = (char*)stackBuffer; in createBufferClone() local
249 uint32_t offsetUp = (uint32_t)U_ALIGNMENT_OFFSET_UP(buf); in createBufferClone()
251 buf += offsetUp; in createBufferClone()
265 return new(buf) CodePointBreakIterator(*this); in createBufferClone()

Completed in 127 milliseconds

12345678910>>...14